tomato/external/sdl/SDL/src/video/SDL_video.c

5227 lines
150 KiB
C
Raw Normal View History

/*
Simple DirectMedia Layer
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
#include "SDL_internal.h"
/* The high-level video driver subsystem */
#include "SDL_sysvideo.h"
#include "SDL_egl_c.h"
#include "SDL_blit.h"
#include "SDL_pixels_c.h"
#include "SDL_rect_c.h"
#include "SDL_video_c.h"
#include "../events/SDL_events_c.h"
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
#include "../SDL_hints_c.h"
#include "../timer/SDL_timer_c.h"
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
#include "SDL_video_capture_c.h"
#ifdef SDL_VIDEO_OPENGL
#include <SDL3/SDL_opengl.h>
#endif /* SDL_VIDEO_OPENGL */
#if defined(SDL_VIDEO_OPENGL_ES) && !defined(SDL_VIDEO_OPENGL)
#include <SDL3/SDL_opengles.h>
#endif /* SDL_VIDEO_OPENGL_ES && !SDL_VIDEO_OPENGL */
/* GL and GLES2 headers conflict on Linux 32 bits */
#if defined(SDL_VIDEO_OPENGL_ES2) && !defined(SDL_VIDEO_OPENGL)
#include <SDL3/SDL_opengles2.h>
#endif /* SDL_VIDEO_OPENGL_ES2 && !SDL_VIDEO_OPENGL */
#ifndef SDL_VIDEO_OPENGL
#ifndef GL_CONTEXT_RELEASE_BEHAVIOR_KHR
#define GL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x82FB
#endif
#endif
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#ifdef __LINUX__
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
/* Available video drivers */
static VideoBootStrap *bootstrap[] = {
#ifdef SDL_VIDEO_DRIVER_COCOA
&COCOA_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_WAYLAND
&Wayland_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_X11
&X11_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_VIVANTE
&VIVANTE_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_WINDOWS
&WINDOWS_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_WINRT
&WINRT_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_HAIKU
&HAIKU_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_UIKIT
&UIKIT_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_ANDROID
&Android_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_PS2
&PS2_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_PSP
&PSP_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_VITA
&VITA_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_N3DS
&N3DS_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_KMSDRM
&KMSDRM_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_RISCOS
&RISCOS_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_RPI
&RPI_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_EMSCRIPTEN
&Emscripten_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_QNX
&QNX_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_NGAGE
&NGAGE_bootstrap,
#endif
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
#ifdef SDL_VIDEO_DRIVER_OFFSCREEN
&OFFSCREEN_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_DUMMY
&DUMMY_bootstrap,
#ifdef SDL_INPUT_LINUXEV
&DUMMY_evdev_bootstrap,
#endif
#endif
NULL
};
#define CHECK_WINDOW_MAGIC(window, retval) \
if (!_this) { \
SDL_UninitializedVideo(); \
return retval; \
} \
if (!(window) || (window)->magic != &_this->window_magic) { \
SDL_SetError("Invalid window"); \
return retval; \
}
#define CHECK_DISPLAY_MAGIC(display, retval) \
if (!display) { \
return retval; \
} \
#define CHECK_WINDOW_NOT_POPUP(window, retval) \
if (SDL_WINDOW_IS_POPUP(window)) { \
SDL_SetError("Operation invalid on popup windows"); \
return retval; \
}
#if defined(__MACOS__) && defined(SDL_VIDEO_DRIVER_COCOA)
/* Support for macOS fullscreen spaces */
extern SDL_bool Cocoa_IsWindowInFullscreenSpace(SDL_Window *window);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
extern SDL_bool Cocoa_SetWindowFullscreenSpace(SDL_Window *window, SDL_bool state, SDL_bool blocking);
#endif
static void SDL_CheckWindowDisplayChanged(SDL_Window *window);
static void SDL_CheckWindowDisplayScaleChanged(SDL_Window *window);
/* Convenience functions for reading driver flags */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
static SDL_bool SDL_ModeSwitchingEmulated(SDL_VideoDevice *_this)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->device_caps & VIDEO_DEVICE_CAPS_MODE_SWITCHING_EMULATED) {
return SDL_TRUE;
}
return SDL_FALSE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
static SDL_bool SDL_SendsFullscreenDimensions(SDL_VideoDevice *_this)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return !!(_this->device_caps & VIDEO_DEVICE_CAPS_SENDS_FULLSCREEN_DIMENSIONS);
}
/* Hint to treat all window ops as synchronous */
static SDL_bool syncHint;
static void SDL_SyncHintWatcher(void *userdata, const char *name, const char *oldValue, const char *newValue)
{
syncHint = SDL_GetStringBoolean(newValue, SDL_FALSE);
}
static void SDL_SyncIfRequired(SDL_Window *window)
{
if (syncHint) {
SDL_SyncWindow(window);
}
}
/* Support for framebuffer emulation using an accelerated renderer */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
#define SDL_PROPERTY_WINDOW_TEXTUREDATA "SDL.internal.window.texturedata"
typedef struct
{
SDL_Renderer *renderer;
SDL_Texture *texture;
void *pixels;
int pitch;
int bytes_per_pixel;
} SDL_WindowTextureData;
static Uint32 SDL_DefaultGraphicsBackends(SDL_VideoDevice *_this)
{
#if (defined(SDL_VIDEO_OPENGL) && defined(__MACOS__)) || (defined(__IOS__) && !TARGET_OS_MACCATALYST) || defined(__ANDROID__)
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->GL_CreateContext) {
return SDL_WINDOW_OPENGL;
}
#endif
#if defined(SDL_VIDEO_METAL) && (TARGET_OS_MACCATALYST || defined(__MACOS__) || defined(__IOS__))
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->Metal_CreateView) {
return SDL_WINDOW_METAL;
}
#endif
return 0;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
static void SDL_CleanupWindowTextureData(void *userdata, void *value)
{
SDL_WindowTextureData *data = (SDL_WindowTextureData *)value;
if (data->texture) {
SDL_DestroyTexture(data->texture);
}
if (data->renderer) {
SDL_DestroyRenderer(data->renderer);
}
SDL_free(data->pixels);
SDL_free(data);
}
static int SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
{
SDL_RendererInfo info;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_PropertiesID props = SDL_GetWindowProperties(window);
SDL_WindowTextureData *data = (SDL_WindowTextureData *)SDL_GetProperty(props, SDL_PROPERTY_WINDOW_TEXTUREDATA, NULL);
const SDL_bool transparent = (window->flags & SDL_WINDOW_TRANSPARENT) ? SDL_TRUE : SDL_FALSE;
int i;
int w, h;
SDL_GetWindowSizeInPixels(window, &w, &h);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!data) {
SDL_Renderer *renderer = NULL;
const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION);
const SDL_bool specific_accelerated_renderer = (hint && *hint != '0' && *hint != '1' &&
SDL_strcasecmp(hint, "true") != 0 &&
SDL_strcasecmp(hint, "false") != 0 &&
SDL_strcasecmp(hint, "software") != 0);
/* Check to see if there's a specific driver requested */
if (specific_accelerated_renderer) {
renderer = SDL_CreateRenderer(window, hint, 0);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!renderer || (SDL_GetRendererInfo(renderer, &info) == -1)) {
if (renderer) {
SDL_DestroyRenderer(renderer);
}
return SDL_SetError("Requested renderer for " SDL_HINT_FRAMEBUFFER_ACCELERATION " is not available");
}
/* if it was specifically requested, even if SDL_RENDERER_ACCELERATED isn't set, we'll accept this renderer. */
} else {
const int total = SDL_GetNumRenderDrivers();
for (i = 0; i < total; ++i) {
const char *name = SDL_GetRenderDriver(i);
if (name && (SDL_strcmp(name, "software") != 0)) {
renderer = SDL_CreateRenderer(window, name, 0);
if (renderer && (SDL_GetRendererInfo(renderer, &info) == 0) && (info.flags & SDL_RENDERER_ACCELERATED)) {
break; /* this will work. */
}
if (renderer) { /* wasn't accelerated, etc, skip it. */
SDL_DestroyRenderer(renderer);
renderer = NULL;
}
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!renderer) {
return SDL_SetError("No hardware accelerated renderers available");
}
}
SDL_assert(renderer != NULL); /* should have explicitly checked this above. */
/* Create the data after we successfully create the renderer (bug #1116) */
data = (SDL_WindowTextureData *)SDL_calloc(1, sizeof(*data));
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!data) {
SDL_DestroyRenderer(renderer);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return -1;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_SetPropertyWithCleanup(props, SDL_PROPERTY_WINDOW_TEXTUREDATA, data, SDL_CleanupWindowTextureData, NULL);
data->renderer = renderer;
} else {
if (SDL_GetRendererInfo(data->renderer, &info) == -1) {
return -1;
}
}
/* Free any old texture and pixel data */
if (data->texture) {
SDL_DestroyTexture(data->texture);
data->texture = NULL;
}
SDL_free(data->pixels);
data->pixels = NULL;
/* Find the first format with or without an alpha channel */
*format = info.texture_formats[0];
for (i = 0; i < (int)info.num_texture_formats; ++i) {
if (!SDL_ISPIXELFORMAT_FOURCC(info.texture_formats[i]) &&
transparent == SDL_ISPIXELFORMAT_ALPHA(info.texture_formats[i])) {
*format = info.texture_formats[i];
break;
}
}
data->texture = SDL_CreateTexture(data->renderer, *format,
SDL_TEXTUREACCESS_STREAMING,
w, h);
if (!data->texture) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* codechecker_false_positive [Malloc] Static analyzer doesn't realize allocated `data` is saved to SDL_PROPERTY_WINDOW_TEXTUREDATA and not leaked here. */
return -1; /* NOLINT(clang-analyzer-unix.Malloc) */
}
/* Create framebuffer data */
data->bytes_per_pixel = SDL_BYTESPERPIXEL(*format);
data->pitch = (((w * data->bytes_per_pixel) + 3) & ~3);
{
/* Make static analysis happy about potential SDL_malloc(0) calls. */
const size_t allocsize = (size_t)h * data->pitch;
data->pixels = SDL_malloc((allocsize > 0) ? allocsize : 1);
if (!data->pixels) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return -1;
}
}
*pixels = data->pixels;
*pitch = data->pitch;
/* Make sure we're not double-scaling the viewport */
SDL_SetRenderViewport(data->renderer, NULL);
return 0;
}
static SDL_VideoDevice *_this = NULL;
static SDL_AtomicInt SDL_messagebox_count;
static int SDL_UpdateWindowTexture(SDL_VideoDevice *unused, SDL_Window *window, const SDL_Rect *rects, int numrects)
{
SDL_WindowTextureData *data;
SDL_Rect rect;
void *src;
int w, h;
SDL_GetWindowSizeInPixels(window, &w, &h);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
data = SDL_GetProperty(SDL_GetWindowProperties(window), SDL_PROPERTY_WINDOW_TEXTUREDATA, NULL);
if (!data || !data->texture) {
return SDL_SetError("No window texture data");
}
/* Update a single rect that contains subrects for best DMA performance */
if (SDL_GetSpanEnclosingRect(w, h, numrects, rects, &rect)) {
src = (void *)((Uint8 *)data->pixels +
rect.y * data->pitch +
rect.x * data->bytes_per_pixel);
if (SDL_UpdateTexture(data->texture, &rect, src, data->pitch) < 0) {
return -1;
}
if (SDL_RenderTexture(data->renderer, data->texture, NULL, NULL) < 0) {
return -1;
}
SDL_RenderPresent(data->renderer);
}
return 0;
}
static void SDL_DestroyWindowTexture(SDL_VideoDevice *unused, SDL_Window *window)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_ClearProperty(SDL_GetWindowProperties(window), SDL_PROPERTY_WINDOW_TEXTUREDATA);
}
int SDL_SetWindowTextureVSync(SDL_Window *window, int vsync)
{
SDL_WindowTextureData *data;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
data = SDL_GetProperty(SDL_GetWindowProperties(window), SDL_PROPERTY_WINDOW_TEXTUREDATA, NULL);
if (!data) {
return -1;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!data->renderer) {
return -1;
}
return SDL_SetRenderVSync(data->renderer, vsync);
}
static int SDLCALL cmpmodes(const void *A, const void *B)
{
const SDL_DisplayMode *a = (const SDL_DisplayMode *)A;
const SDL_DisplayMode *b = (const SDL_DisplayMode *)B;
int a_refresh_rate = (int)(a->refresh_rate * 100);
int b_refresh_rate = (int)(b->refresh_rate * 100);
int a_pixel_density = (int)(a->pixel_density * 100);
int b_pixel_density = (int)(b->pixel_density * 100);
if (a->w != b->w) {
return b->w - a->w;
} else if (a->h != b->h) {
return b->h - a->h;
} else if (SDL_BITSPERPIXEL(a->format) != SDL_BITSPERPIXEL(b->format)) {
return SDL_BITSPERPIXEL(b->format) - SDL_BITSPERPIXEL(a->format);
} else if (SDL_PIXELLAYOUT(a->format) != SDL_PIXELLAYOUT(b->format)) {
return SDL_PIXELLAYOUT(b->format) - SDL_PIXELLAYOUT(a->format);
} else if (a_refresh_rate != b_refresh_rate) {
return b_refresh_rate - a_refresh_rate;
} else if (a_pixel_density != b_pixel_density) {
return a_pixel_density - b_pixel_density;
}
return 0;
}
static int SDL_UninitializedVideo(void)
{
return SDL_SetError("Video subsystem has not been initialized");
}
int SDL_GetNumVideoDrivers(void)
{
return SDL_arraysize(bootstrap) - 1;
}
const char *SDL_GetVideoDriver(int index)
{
if (index >= 0 && index < SDL_GetNumVideoDrivers()) {
return bootstrap[index]->name;
}
return NULL;
}
/*
* Initialize the video and event subsystems -- determine native pixel format
*/
int SDL_VideoInit(const char *driver_name)
{
SDL_VideoDevice *video;
SDL_bool init_events = SDL_FALSE;
SDL_bool init_keyboard = SDL_FALSE;
SDL_bool init_mouse = SDL_FALSE;
SDL_bool init_touch = SDL_FALSE;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_bool init_video_capture = SDL_FALSE;
int i = 0;
/* Check to make sure we don't overwrite '_this' */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this) {
SDL_VideoQuit();
}
SDL_InitTicks();
/* Start the event loop */
if (SDL_InitSubSystem(SDL_INIT_EVENTS) < 0) {
goto pre_driver_error;
}
init_events = SDL_TRUE;
if (SDL_InitKeyboard() < 0) {
goto pre_driver_error;
}
init_keyboard = SDL_TRUE;
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
if (SDL_PreInitMouse() < 0) {
goto pre_driver_error;
}
init_mouse = SDL_TRUE;
if (SDL_InitTouch() < 0) {
goto pre_driver_error;
}
init_touch = SDL_TRUE;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (SDL_VideoCaptureInit() < 0) {
goto pre_driver_error;
}
init_video_capture = SDL_TRUE;
/* Select the proper video driver */
video = NULL;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!driver_name) {
driver_name = SDL_GetHint(SDL_HINT_VIDEO_DRIVER);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (driver_name && *driver_name != 0) {
const char *driver_attempt = driver_name;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
while (driver_attempt && *driver_attempt != 0 && !video) {
const char *driver_attempt_end = SDL_strchr(driver_attempt, ',');
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
size_t driver_attempt_len = (driver_attempt_end) ? (driver_attempt_end - driver_attempt)
: SDL_strlen(driver_attempt);
for (i = 0; bootstrap[i]; ++i) {
if ((driver_attempt_len == SDL_strlen(bootstrap[i]->name)) &&
(SDL_strncasecmp(bootstrap[i]->name, driver_attempt, driver_attempt_len) == 0)) {
video = bootstrap[i]->create();
break;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
driver_attempt = (driver_attempt_end) ? (driver_attempt_end + 1) : NULL;
}
} else {
for (i = 0; bootstrap[i]; ++i) {
video = bootstrap[i]->create();
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (video) {
break;
}
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!video) {
if (driver_name) {
SDL_SetError("%s not available", driver_name);
goto pre_driver_error;
}
SDL_SetError("No available video device");
goto pre_driver_error;
}
/* From this point on, use SDL_VideoQuit to cleanup on error, rather than
pre_driver_error. */
_this = video;
_this->name = bootstrap[i]->name;
_this->thread = SDL_ThreadID();
/* Set some very sane GL defaults */
_this->gl_config.driver_loaded = 0;
_this->gl_config.dll_handle = NULL;
SDL_GL_ResetAttributes();
_this->current_glwin_tls = SDL_CreateTLS();
_this->current_glctx_tls = SDL_CreateTLS();
/* Initialize the video subsystem */
if (_this->VideoInit(_this) < 0) {
SDL_VideoQuit();
return -1;
}
/* Make sure some displays were added */
if (_this->num_displays == 0) {
SDL_VideoQuit();
return SDL_SetError("The video driver did not add any displays");
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_AddHintCallback(SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS, SDL_SyncHintWatcher, NULL);
/* Disable the screen saver by default. This is a change from <= 2.0.1,
but most things using SDL are games or media players; you wouldn't
want a screensaver to trigger if you're playing exclusively with a
joystick, or passively watching a movie. Things that use SDL but
function more like a normal desktop app should explicitly reenable the
screensaver. */
if (!SDL_GetHintBoolean(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, SDL_FALSE)) {
SDL_DisableScreenSaver();
}
/* If we don't use a screen keyboard, turn on text input by default,
otherwise programs that expect to get text events without enabling
UNICODE input won't get any events.
Actually, come to think of it, you needed to call SDL_EnableUNICODE(1)
in SDL 1.2 before you got text input events. Hmm...
*/
if (!SDL_HasScreenKeyboardSupport()) {
SDL_StartTextInput();
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_PostInitMouse();
/* We're ready to go! */
return 0;
pre_driver_error:
SDL_assert(_this == NULL);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (init_video_capture) {
SDL_QuitVideoCapture();
}
if (init_touch) {
SDL_QuitTouch();
}
if (init_mouse) {
SDL_QuitMouse();
}
if (init_keyboard) {
SDL_QuitKeyboard();
}
if (init_events) {
SDL_QuitSubSystem(SDL_INIT_EVENTS);
}
return -1;
}
const char *SDL_GetCurrentVideoDriver(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
return _this->name;
}
SDL_VideoDevice *SDL_GetVideoDevice(void)
{
return _this;
}
SDL_bool SDL_OnVideoThread(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return (_this && SDL_ThreadID() == _this->thread);
}
SDL_bool SDL_IsVideoContextExternal(void)
{
return SDL_GetHintBoolean(SDL_HINT_VIDEO_EXTERNAL_CONTEXT, SDL_FALSE);
}
void SDL_SetSystemTheme(SDL_SystemTheme theme)
{
if (_this && theme != _this->system_theme) {
_this->system_theme = theme;
SDL_SendSystemThemeChangedEvent();
}
}
SDL_SystemTheme SDL_GetSystemTheme(void)
{
if (_this) {
return _this->system_theme;
} else {
return SDL_SYSTEM_THEME_UNKNOWN;
}
}
static void SDL_FinalizeDisplayMode(SDL_DisplayMode *mode)
{
/* Make sure all the fields are set up correctly */
if (mode->pixel_density <= 0.0f) {
mode->pixel_density = 1.0f;
}
}
SDL_DisplayID SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
{
SDL_VideoDisplay display;
SDL_zero(display);
if (desktop_mode) {
SDL_memcpy(&display.desktop_mode, desktop_mode, sizeof(display.desktop_mode));
}
return SDL_AddVideoDisplay(&display, SDL_FALSE);
}
SDL_DisplayID SDL_AddVideoDisplay(const SDL_VideoDisplay *display, SDL_bool send_event)
{
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_VideoDisplay **displays, *new_display;
SDL_DisplayID id;
int i;
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
new_display = (SDL_VideoDisplay *)SDL_malloc(sizeof(*new_display));
if (!new_display) {
return 0;
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
displays = (SDL_VideoDisplay **)SDL_realloc(_this->displays, (_this->num_displays + 1) * sizeof(*displays));
if (!displays) {
SDL_free(new_display);
return 0;
}
_this->displays = displays;
_this->displays[_this->num_displays++] = new_display;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
id = SDL_GetNextObjectID();
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_memcpy(new_display, display, sizeof(*new_display));
new_display->id = id;
new_display->device = _this;
if (display->name) {
new_display->name = SDL_strdup(display->name);
} else {
char name[32];
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_itoa(id, name, 10);
new_display->name = SDL_strdup(name);
}
if (new_display->content_scale == 0.0f) {
new_display->content_scale = 1.0f;
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
new_display->desktop_mode.displayID = id;
new_display->current_mode = &new_display->desktop_mode;
SDL_FinalizeDisplayMode(&new_display->desktop_mode);
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
for (i = 0; i < new_display->num_fullscreen_modes; ++i) {
new_display->fullscreen_modes[i].displayID = id;
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
if (send_event) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_SendDisplayEvent(new_display, SDL_EVENT_DISPLAY_ADDED, 0);
}
return id;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
void SDL_OnDisplayAdded(SDL_VideoDisplay *display)
{
SDL_Window *window;
/* See if any windows have changed to the new display */
for (window = _this->windows; window; window = window->next) {
SDL_CheckWindowDisplayChanged(window);
}
}
void SDL_DelVideoDisplay(SDL_DisplayID displayID, SDL_bool send_event)
{
SDL_VideoDisplay *display;
int display_index = SDL_GetDisplayIndex(displayID);
if (display_index < 0) {
return;
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
display = _this->displays[display_index];
if (send_event) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_SendDisplayEvent(display, SDL_EVENT_DISPLAY_REMOVED, 0);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_DestroyProperties(display->props);
SDL_free(display->name);
SDL_ResetFullscreenDisplayModes(display);
SDL_free(display->desktop_mode.driverdata);
display->desktop_mode.driverdata = NULL;
SDL_free(display->driverdata);
display->driverdata = NULL;
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_free(display);
if (display_index < (_this->num_displays - 1)) {
SDL_memmove(&_this->displays[display_index], &_this->displays[display_index + 1], (_this->num_displays - display_index - 1) * sizeof(_this->displays[display_index]));
}
--_this->num_displays;
}
SDL_DisplayID *SDL_GetDisplays(int *count)
{
int i;
SDL_DisplayID *displays;
if (!_this) {
if (count) {
*count = 0;
}
SDL_UninitializedVideo();
return NULL;
}
displays = (SDL_DisplayID *)SDL_malloc((_this->num_displays + 1) * sizeof(*displays));
if (displays) {
if (count) {
*count = _this->num_displays;
}
for (i = 0; i < _this->num_displays; ++i) {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
displays[i] = _this->displays[i]->id;
}
displays[i] = 0;
} else {
if (count) {
*count = 0;
}
}
return displays;
}
SDL_VideoDisplay *SDL_GetVideoDisplay(SDL_DisplayID displayID)
{
int display_index;
display_index = SDL_GetDisplayIndex(displayID);
if (display_index < 0) {
return NULL;
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
return _this->displays[display_index];
}
SDL_VideoDisplay *SDL_GetVideoDisplayForWindow(SDL_Window *window)
{
return SDL_GetVideoDisplay(SDL_GetDisplayForWindow(window));
}
SDL_DisplayID SDL_GetPrimaryDisplay(void)
{
if (!_this || _this->num_displays == 0) {
SDL_UninitializedVideo();
return 0;
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
return _this->displays[0]->id;
}
int SDL_GetDisplayIndex(SDL_DisplayID displayID)
{
int display_index;
if (!_this) {
return SDL_UninitializedVideo();
}
for (display_index = 0; display_index < _this->num_displays; ++display_index) {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
if (displayID == _this->displays[display_index]->id) {
return display_index;
}
}
return SDL_SetError("Invalid display");
}
SDL_DisplayData *SDL_GetDisplayDriverData(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, NULL);
return display->driverdata;
}
SDL_DisplayData *SDL_GetDisplayDriverDataForWindow(SDL_Window *window)
{
return SDL_GetDisplayDriverData(SDL_GetDisplayForWindow(window));
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_PropertiesID SDL_GetDisplayProperties(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, 0);
if (display->props == 0) {
display->props = SDL_CreateProperties();
}
return display->props;
}
const char *SDL_GetDisplayName(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, NULL);
return display->name;
}
int SDL_GetDisplayBounds(SDL_DisplayID displayID, SDL_Rect *rect)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!rect) {
return SDL_InvalidParamError("rect");
}
if (_this->GetDisplayBounds) {
if (_this->GetDisplayBounds(_this, display, rect) == 0) {
return 0;
}
}
/* Assume that the displays are left to right */
if (displayID == SDL_GetPrimaryDisplay()) {
rect->x = 0;
rect->y = 0;
} else {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_GetDisplayBounds(_this->displays[SDL_GetDisplayIndex(displayID) - 1]->id, rect);
rect->x += rect->w;
}
rect->w = display->current_mode->w;
rect->h = display->current_mode->h;
return 0;
}
static int ParseDisplayUsableBoundsHint(SDL_Rect *rect)
{
const char *hint = SDL_GetHint(SDL_HINT_DISPLAY_USABLE_BOUNDS);
return hint && (SDL_sscanf(hint, "%d,%d,%d,%d", &rect->x, &rect->y, &rect->w, &rect->h) == 4);
}
int SDL_GetDisplayUsableBounds(SDL_DisplayID displayID, SDL_Rect *rect)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!rect) {
return SDL_InvalidParamError("rect");
}
if (displayID == SDL_GetPrimaryDisplay() && ParseDisplayUsableBoundsHint(rect)) {
return 0;
}
if (_this->GetDisplayUsableBounds) {
if (_this->GetDisplayUsableBounds(_this, display, rect) == 0) {
return 0;
}
}
/* Oh well, just give the entire display bounds. */
return SDL_GetDisplayBounds(displayID, rect);
}
SDL_DisplayOrientation SDL_GetNaturalDisplayOrientation(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, SDL_ORIENTATION_UNKNOWN);
if (display->natural_orientation != SDL_ORIENTATION_UNKNOWN) {
return display->natural_orientation;
} else {
/* Default to landscape if the driver hasn't set it */
return SDL_ORIENTATION_LANDSCAPE;
}
}
SDL_DisplayOrientation SDL_GetCurrentDisplayOrientation(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, SDL_ORIENTATION_UNKNOWN);
if (display->current_orientation != SDL_ORIENTATION_UNKNOWN) {
return display->current_orientation;
} else {
/* Default to landscape if the driver hasn't set it */
return SDL_ORIENTATION_LANDSCAPE;
}
}
void SDL_SetDisplayContentScale(SDL_VideoDisplay *display, float scale)
{
if (scale != display->content_scale) {
SDL_Window *window;
display->content_scale = scale;
SDL_SendDisplayEvent(display, SDL_EVENT_DISPLAY_CONTENT_SCALE_CHANGED, 0);
/* Check the windows on this display */
for (window = _this->windows; window; window = window->next) {
if (display->id == window->last_displayID) {
SDL_CheckWindowDisplayScaleChanged(window);
}
}
}
}
float SDL_GetDisplayContentScale(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, 0.0f);
return display->content_scale;
}
static const SDL_DisplayMode *SDL_GetFullscreenModeMatch(const SDL_DisplayMode *mode)
{
const SDL_DisplayMode **modes;
SDL_DisplayMode fullscreen_mode;
if (mode->w <= 0 || mode->h <= 0) {
/* Use the desktop mode */
return NULL;
}
SDL_memcpy(&fullscreen_mode, mode, sizeof(fullscreen_mode));
if (fullscreen_mode.displayID == 0) {
fullscreen_mode.displayID = SDL_GetPrimaryDisplay();
}
SDL_FinalizeDisplayMode(&fullscreen_mode);
mode = NULL;
modes = SDL_GetFullscreenDisplayModes(fullscreen_mode.displayID, NULL);
if (modes) {
int i;
/* Search for an exact match */
if (!mode) {
for (i = 0; modes[i]; ++i) {
if (SDL_memcmp(&fullscreen_mode, modes[i], sizeof(fullscreen_mode)) == 0) {
mode = modes[i];
break;
}
}
}
/* Search for a mode with the same characteristics */
if (!mode) {
for (i = 0; modes[i]; ++i) {
if (cmpmodes(&fullscreen_mode, modes[i]) == 0) {
mode = modes[i];
break;
}
}
}
SDL_free((void *)modes);
}
return mode;
}
SDL_bool SDL_AddFullscreenDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
{
SDL_DisplayMode *modes;
SDL_DisplayMode new_mode;
int i, nmodes;
/* Finalize the mode for the display */
SDL_memcpy(&new_mode, mode, sizeof(new_mode));
new_mode.displayID = display->id;
SDL_FinalizeDisplayMode(&new_mode);
/* Make sure we don't already have the mode in the list */
modes = display->fullscreen_modes;
nmodes = display->num_fullscreen_modes;
for (i = 0; i < nmodes; ++i) {
if (cmpmodes(&new_mode, &modes[i]) == 0) {
return SDL_FALSE;
}
}
/* Go ahead and add the new mode */
if (nmodes == display->max_fullscreen_modes) {
modes = (SDL_DisplayMode *)SDL_malloc((display->max_fullscreen_modes + 32) * sizeof(*modes));
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!modes) {
return SDL_FALSE;
}
if (display->fullscreen_modes) {
/* Copy the list and update the current mode pointer, if necessary. */
SDL_memcpy(modes, display->fullscreen_modes, nmodes * sizeof(*modes));
for (i = 0; i < nmodes; ++i) {
if (display->current_mode == &display->fullscreen_modes[i]) {
display->current_mode = &modes[i];
}
}
SDL_free(display->fullscreen_modes);
}
display->fullscreen_modes = modes;
display->max_fullscreen_modes += 32;
}
SDL_memcpy(&modes[display->num_fullscreen_modes++], &new_mode, sizeof(new_mode));
/* Re-sort video modes */
SDL_qsort(display->fullscreen_modes, display->num_fullscreen_modes,
sizeof(SDL_DisplayMode), cmpmodes);
return SDL_TRUE;
}
void SDL_ResetFullscreenDisplayModes(SDL_VideoDisplay *display)
{
int i;
for (i = display->num_fullscreen_modes; i--;) {
SDL_free(display->fullscreen_modes[i].driverdata);
display->fullscreen_modes[i].driverdata = NULL;
}
SDL_free(display->fullscreen_modes);
display->fullscreen_modes = NULL;
display->num_fullscreen_modes = 0;
display->max_fullscreen_modes = 0;
display->current_mode = &display->desktop_mode;
}
const SDL_DisplayMode **SDL_GetFullscreenDisplayModes(SDL_DisplayID displayID, int *count)
{
int i;
const SDL_DisplayMode **modes;
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
if (count) {
*count = 0;
}
CHECK_DISPLAY_MAGIC(display, NULL);
if (display->num_fullscreen_modes == 0 && _this->GetDisplayModes) {
_this->GetDisplayModes(_this, display);
}
modes = (const SDL_DisplayMode **)SDL_malloc((display->num_fullscreen_modes + 1) * sizeof(*modes));
if (modes) {
if (count) {
*count = display->num_fullscreen_modes;
}
for (i = 0; i < display->num_fullscreen_modes; ++i) {
modes[i] = &display->fullscreen_modes[i];
}
modes[i] = NULL;
} else {
if (count) {
*count = 0;
}
}
return modes;
}
const SDL_DisplayMode *SDL_GetClosestFullscreenDisplayMode(SDL_DisplayID displayID, int w, int h, float refresh_rate, SDL_bool include_high_density_modes)
{
const SDL_DisplayMode **modes;
const SDL_DisplayMode *mode, *closest = NULL;
float aspect_ratio;
int i;
if (h > 0) {
aspect_ratio = (float)w / h;
} else {
aspect_ratio = 1.0f;
}
if (refresh_rate == 0.0f) {
mode = SDL_GetDesktopDisplayMode(displayID);
if (mode) {
refresh_rate = mode->refresh_rate;
}
}
modes = SDL_GetFullscreenDisplayModes(displayID, NULL);
if (modes) {
for (i = 0; modes[i]; ++i) {
mode = modes[i];
if (w > mode->w) {
/* Out of sorted modes large enough here */
break;
}
if (h > mode->h) {
/* Wider, but not tall enough, due to a different aspect ratio.
* This mode must be skipped, but closer modes may still follow */
continue;
}
if (mode->pixel_density > 1.0f && !include_high_density_modes) {
continue;
}
if (closest) {
float current_aspect_ratio = (float)mode->w / mode->h;
float closest_aspect_ratio = (float)closest->w / closest->h;
if (SDL_fabsf(aspect_ratio - closest_aspect_ratio) < SDL_fabsf(aspect_ratio - current_aspect_ratio)) {
/* The mode we already found has a better aspect ratio match */
continue;
}
if (mode->w == closest->w && mode->h == closest->h &&
SDL_fabsf(closest->refresh_rate - refresh_rate) < SDL_fabsf(mode->refresh_rate - refresh_rate)) {
/* We already found a mode and the new mode is further from our
* refresh rate target */
continue;
}
}
closest = mode;
}
SDL_free((void *)modes);
}
return closest;
}
void SDL_SetDesktopDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (display->desktop_mode.driverdata) {
SDL_free(display->desktop_mode.driverdata);
}
SDL_memcpy(&display->desktop_mode, mode, sizeof(*mode));
display->desktop_mode.displayID = display->id;
SDL_FinalizeDisplayMode(&display->desktop_mode);
}
const SDL_DisplayMode *SDL_GetDesktopDisplayMode(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, NULL);
return &display->desktop_mode;
}
void SDL_SetCurrentDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
{
display->current_mode = mode;
}
const SDL_DisplayMode *SDL_GetCurrentDisplayMode(SDL_DisplayID displayID)
{
SDL_VideoDisplay *display = SDL_GetVideoDisplay(displayID);
CHECK_DISPLAY_MAGIC(display, NULL);
/* Make sure our mode list is updated */
if (display->num_fullscreen_modes == 0 && _this->GetDisplayModes) {
_this->GetDisplayModes(_this, display);
}
return display->current_mode;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay *display, SDL_DisplayMode *mode)
{
/* Mode switching is being emulated per-window; nothing to do and cannot fail. */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (SDL_ModeSwitchingEmulated(_this)) {
return 0;
}
if (!mode) {
mode = &display->desktop_mode;
}
if (mode == display->current_mode) {
return 0;
}
/* Actually change the display mode */
if (_this->SetDisplayMode) {
int result;
_this->setting_display_mode = SDL_TRUE;
result = _this->SetDisplayMode(_this, display, mode);
_this->setting_display_mode = SDL_FALSE;
if (result < 0) {
return -1;
}
}
SDL_SetCurrentDisplayMode(display, mode);
return 0;
}
/**
* If x, y are outside of rect, snaps them to the closest point inside rect
* (between rect->x, rect->y, inclusive, and rect->x + w, rect->y + h, exclusive)
*/
static void SDL_GetClosestPointOnRect(const SDL_Rect *rect, SDL_Point *point)
{
const int right = rect->x + rect->w - 1;
const int bottom = rect->y + rect->h - 1;
if (point->x < rect->x) {
point->x = rect->x;
} else if (point->x > right) {
point->x = right;
}
if (point->y < rect->y) {
point->y = rect->y;
} else if (point->y > bottom) {
point->y = bottom;
}
}
static SDL_DisplayID GetDisplayForRect(int x, int y, int w, int h)
{
int i, dist;
SDL_DisplayID closest = 0;
int closest_dist = 0x7FFFFFFF;
SDL_Point closest_point_on_display;
SDL_Point delta;
SDL_Point center;
center.x = x + w / 2;
center.y = y + h / 2;
if (_this) {
for (i = 0; i < _this->num_displays; ++i) {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_VideoDisplay *display = _this->displays[i];
SDL_Rect display_rect;
SDL_GetDisplayBounds(display->id, &display_rect);
/* Check if the window is fully enclosed */
if (SDL_GetRectEnclosingPoints(&center, 1, &display_rect, NULL)) {
return display->id;
}
/* Snap window center to the display rect */
closest_point_on_display = center;
SDL_GetClosestPointOnRect(&display_rect, &closest_point_on_display);
delta.x = center.x - closest_point_on_display.x;
delta.y = center.y - closest_point_on_display.y;
dist = (delta.x * delta.x + delta.y * delta.y);
if (dist < closest_dist) {
closest = display->id;
closest_dist = dist;
}
}
}
if (closest == 0) {
SDL_SetError("Couldn't find any displays");
}
return closest;
}
void SDL_RelativeToGlobalForWindow(SDL_Window *window, int rel_x, int rel_y, int *abs_x, int *abs_y)
{
SDL_Window *w;
if (SDL_WINDOW_IS_POPUP(window)) {
/* Calculate the total offset of the popup from the parents */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
for (w = window->parent; w; w = w->parent) {
rel_x += w->x;
rel_y += w->y;
}
}
if (abs_x) {
*abs_x = rel_x;
}
if (abs_y) {
*abs_y = rel_y;
}
}
void SDL_GlobalToRelativeForWindow(SDL_Window *window, int abs_x, int abs_y, int *rel_x, int *rel_y)
{
SDL_Window *w;
if (SDL_WINDOW_IS_POPUP(window)) {
/* Convert absolute window coordinates to relative for a popup */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
for (w = window->parent; w; w = w->parent) {
abs_x -= w->x;
abs_y -= w->y;
}
}
if (rel_x) {
*rel_x = abs_x;
}
if (rel_y) {
*rel_y = abs_y;
}
}
SDL_DisplayID SDL_GetDisplayForPoint(const SDL_Point *point)
{
return GetDisplayForRect(point->x, point->y, 1, 1);
}
SDL_DisplayID SDL_GetDisplayForRect(const SDL_Rect *rect)
{
return GetDisplayForRect(rect->x, rect->y, rect->w, rect->h);
}
static SDL_DisplayID SDL_GetDisplayForWindowPosition(SDL_Window *window)
{
int x, y;
SDL_DisplayID displayID = 0;
CHECK_WINDOW_MAGIC(window, 0);
if (_this->GetDisplayForWindow) {
displayID = _this->GetDisplayForWindow(_this, window);
}
/* A backend implementation may fail to get a display for the window
* (for example if the window is off-screen), but other code may expect it
* to succeed in that situation, so we fall back to a generic position-
* based implementation in that case. */
SDL_RelativeToGlobalForWindow(window, window->x, window->y, &x, &y);
if (!displayID) {
displayID = GetDisplayForRect(x, y, window->w, window->h);
}
if (!displayID) {
/* Use the primary display for a window if we can't find it anywhere else */
displayID = SDL_GetPrimaryDisplay();
}
return displayID;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_VideoDisplay *SDL_GetVideoDisplayForFullscreenWindow(SDL_Window *window)
{
SDL_DisplayID displayID = 0;
CHECK_WINDOW_MAGIC(window, 0);
/* An explicit fullscreen display overrides all */
if (window->current_fullscreen_mode.displayID) {
displayID = window->current_fullscreen_mode.displayID;
}
/* The floating position is used here as a very common pattern is
* SDL_SetWindowPosition() followed by SDL_SetWindowFullscreen to make the
* window fullscreen desktop on a specific display. If the backend doesn't
* support changing the window position, or the compositor hasn't yet actually
* moved the window, the actual position won't be updated at the time of the
* fullscreen call.
*/
if (!displayID) {
displayID = GetDisplayForRect(window->floating.x, window->floating.y, window->w, window->h);
}
if (!displayID) {
/* Use the primary display for a window if we can't find it anywhere else */
displayID = SDL_GetPrimaryDisplay();
}
return SDL_GetVideoDisplay(displayID);
}
SDL_DisplayID SDL_GetDisplayForWindow(SDL_Window *window)
{
SDL_DisplayID displayID = 0;
CHECK_WINDOW_MAGIC(window, 0);
/* An explicit fullscreen display overrides all */
if (window->flags & SDL_WINDOW_FULLSCREEN) {
displayID = window->current_fullscreen_mode.displayID;
}
if (!displayID) {
displayID = SDL_GetDisplayForWindowPosition(window);
}
return displayID;
}
static void SDL_CheckWindowDisplayChanged(SDL_Window *window)
{
SDL_DisplayID displayID = SDL_GetDisplayForWindowPosition(window);
if (displayID != window->last_displayID) {
int i, display_index;
/* Sanity check our fullscreen windows */
display_index = SDL_GetDisplayIndex(displayID);
for (i = 0; i < _this->num_displays; ++i) {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_VideoDisplay *display = _this->displays[i];
if (display->fullscreen_window == window) {
if (display_index != i) {
if (display_index < 0) {
display_index = i;
} else {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_VideoDisplay *new_display = _this->displays[display_index];
/* The window was moved to a different display */
if (new_display->fullscreen_window &&
new_display->fullscreen_window != window) {
/* Uh oh, there's already a fullscreen window here; minimize it */
SDL_MinimizeWindow(new_display->fullscreen_window);
}
new_display->fullscreen_window = window;
display->fullscreen_window = NULL;
}
}
break;
}
}
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_DISPLAY_CHANGED, (int)displayID, 0);
}
}
float SDL_GetWindowPixelDensity(SDL_Window *window)
{
int window_w, window_h, pixel_w, pixel_h;
float pixel_density = 1.0f;
CHECK_WINDOW_MAGIC(window, 0.0f);
if (SDL_GetWindowSize(window, &window_w, &window_h) == 0 &&
SDL_GetWindowSizeInPixels(window, &pixel_w, &pixel_h) == 0) {
pixel_density = (float)pixel_w / window_w;
}
return pixel_density;
}
float SDL_GetWindowDisplayScale(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, 0.0f);
return window->display_scale;
}
static void SDL_CheckWindowDisplayScaleChanged(SDL_Window *window)
{
float pixel_density = SDL_GetWindowPixelDensity(window);
float content_scale = SDL_GetDisplayContentScale(SDL_GetDisplayForWindowPosition(window));
float display_scale;
display_scale = (pixel_density * content_scale);
if (display_scale != window->display_scale) {
window->display_scale = display_scale;
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_DISPLAY_SCALE_CHANGED, 0, 0);
}
}
#ifdef __WINRT__
extern Uint32 WINRT_DetectWindowFlags(SDL_Window *window);
#endif
static void SDL_RestoreMousePosition(SDL_Window *window)
{
float x, y;
if (window == SDL_GetMouseFocus()) {
SDL_GetMouseState(&x, &y);
SDL_WarpMouseInWindow(window, x, y);
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
int SDL_UpdateFullscreenMode(SDL_Window *window, SDL_bool fullscreen, SDL_bool commit)
{
SDL_VideoDisplay *display = NULL;
SDL_DisplayMode *mode = NULL;
int i;
CHECK_WINDOW_MAGIC(window, -1);
window->fullscreen_exclusive = SDL_FALSE;
/* If we are in the process of hiding don't go back to fullscreen */
if (window->is_destroying || window->is_hiding) {
fullscreen = SDL_FALSE;
}
/* Get the correct display for this operation */
if (fullscreen) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
display = SDL_GetVideoDisplayForFullscreenWindow(window);
if (!display) {
/* This should never happen, but it did... */
goto done;
}
} else {
for (i = 0; i < _this->num_displays; ++i) {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
display = _this->displays[i];
if (display->fullscreen_window == window) {
break;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!display || i == _this->num_displays) {
/* Already not fullscreen on any display */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
display = NULL;
}
}
if (fullscreen) {
mode = (SDL_DisplayMode *)SDL_GetWindowFullscreenMode(window);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (mode) {
window->fullscreen_exclusive = SDL_TRUE;
} else {
/* Make sure the current mode is zeroed for fullscreen desktop. */
SDL_zero(window->current_fullscreen_mode);
}
}
#if defined(__MACOS__) && defined(SDL_VIDEO_DRIVER_COCOA)
/* if the window is going away and no resolution change is necessary,
do nothing, or else we may trigger an ugly double-transition
*/
if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
if (window->is_destroying && !window->last_fullscreen_exclusive_display) {
window->fullscreen_exclusive = SDL_FALSE;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (display) {
display->fullscreen_window = NULL;
}
goto done;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (commit) {
/* If we're switching between a fullscreen Space and exclusive fullscreen, we need to get back to normal first. */
if (fullscreen && Cocoa_IsWindowInFullscreenSpace(window) && !window->last_fullscreen_exclusive_display && window->fullscreen_exclusive) {
if (!Cocoa_SetWindowFullscreenSpace(window, SDL_FALSE, SDL_TRUE)) {
goto error;
}
} else if (fullscreen && window->last_fullscreen_exclusive_display && !window->fullscreen_exclusive) {
for (i = 0; i < _this->num_displays; ++i) {
SDL_VideoDisplay *last_display = _this->displays[i];
if (last_display->fullscreen_window == window) {
SDL_SetDisplayModeForDisplay(last_display, NULL);
if (_this->SetWindowFullscreen) {
_this->SetWindowFullscreen(_this, window, last_display, SDL_FALSE);
}
last_display->fullscreen_window = NULL;
}
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (Cocoa_SetWindowFullscreenSpace(window, fullscreen, syncHint)) {
goto done;
}
}
}
#elif defined(__WINRT__) && (NTDDI_VERSION < NTDDI_WIN10)
/* HACK: WinRT 8.x apps can't choose whether or not they are fullscreen
or not. The user can choose this, via OS-provided UI, but this can't
be set programmatically.
Just look at what SDL's WinRT video backend code detected with regards
to fullscreen (being active, or not), and figure out a return/error code
from that.
*/
if (fullscreen == !(WINRT_DetectWindowFlags(window) & SDL_WINDOW_FULLSCREEN)) {
/* Uh oh, either:
1. fullscreen was requested, and we're already windowed
2. windowed-mode was requested, and we're already fullscreen
WinRT 8.x can't resolve either programmatically, so we're
giving up.
*/
goto error;
} else {
/* Whatever was requested, fullscreen or windowed mode, is already
in-place.
*/
if (fullscreen) {
display->fullscreen_window = window;
} else {
display->fullscreen_window = NULL;
}
goto done;
}
#endif
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (display) {
/* Restore the video mode on other displays if needed */
for (i = 0; i < _this->num_displays; ++i) {
SDL_VideoDisplay *other = _this->displays[i];
if (other != display && other->fullscreen_window == window) {
SDL_SetDisplayModeForDisplay(other, NULL);
other->fullscreen_window = NULL;
}
}
}
if (fullscreen) {
int mode_w = 0, mode_h = 0;
SDL_bool resized = SDL_FALSE;
/* Hide any other fullscreen window on this display */
if (display->fullscreen_window &&
display->fullscreen_window != window) {
SDL_MinimizeWindow(display->fullscreen_window);
}
if (SDL_SetDisplayModeForDisplay(display, mode) < 0) {
goto error;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (commit) {
int ret = 0;
if (_this->SetWindowFullscreen) {
ret = _this->SetWindowFullscreen(_this, window, display, SDL_TRUE);
} else {
resized = SDL_TRUE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (ret == 0) {
/* Window is fullscreen immediately upon return. If the driver hasn't already sent the event, do so now. */
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_ENTER_FULLSCREEN, 0, 0);
}
} else if (ret < 0) {
goto error;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (window->flags & SDL_WINDOW_FULLSCREEN) {
display->fullscreen_window = window;
/* Android may not resize the window to exactly what our fullscreen mode is,
* especially on windowed Android environments like the Chromebook or Samsung DeX.
* Given this, we shouldn't use the mode size. Android's SetWindowFullscreen
* will generate the window event for us with the proper final size.
*
* This is also unnecessary on Cocoa, Wayland, Win32, and X11 (will send SDL_EVENT_WINDOW_RESIZED).
*/
if (!SDL_SendsFullscreenDimensions(_this)) {
if (mode) {
mode_w = mode->w;
mode_h = mode->h;
} else {
mode_w = display->desktop_mode.w;
mode_h = display->desktop_mode.h;
}
if (window->w != mode_w || window->h != mode_h) {
resized = SDL_TRUE;
}
if (resized) {
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_RESIZED, mode_w, mode_h);
} else {
SDL_OnWindowResized(window);
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Restore the cursor position */
SDL_RestoreMousePosition(window);
}
} else {
SDL_bool resized = SDL_FALSE;
/* Restore the desktop mode */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (display) {
SDL_SetDisplayModeForDisplay(display, NULL);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (commit) {
int ret = 0;
if (_this->SetWindowFullscreen) {
ret = _this->SetWindowFullscreen(_this, window, display ? display : SDL_GetVideoDisplayForFullscreenWindow(window), SDL_FALSE);
} else {
resized = SDL_TRUE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (ret == 0) {
/* Window left fullscreen immediately upon return. If the driver hasn't already sent the event, do so now. */
if (window->flags & SDL_WINDOW_FULLSCREEN) {
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_LEAVE_FULLSCREEN, 0, 0);
}
} else if (ret < 0) {
goto error;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
if (display) {
display->fullscreen_window = NULL;
}
if (!SDL_SendsFullscreenDimensions(_this)) {
if (resized) {
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_RESIZED, window->windowed.w, window->windowed.h);
} else {
SDL_OnWindowResized(window);
}
}
/* Restore the cursor position */
SDL_RestoreMousePosition(window);
}
}
done:
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
window->last_fullscreen_exclusive_display = display && (window->flags & SDL_WINDOW_FULLSCREEN) && window->fullscreen_exclusive ? display->id : 0;
return 0;
error:
if (fullscreen) {
/* Something went wrong and the window is no longer fullscreen. */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_UpdateFullscreenMode(window, SDL_FALSE, commit);
}
return -1;
}
int SDL_SetWindowFullscreenMode(SDL_Window *window, const SDL_DisplayMode *mode)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (mode) {
if (!SDL_GetFullscreenModeMatch(mode)) {
return SDL_SetError("Invalid fullscreen display mode");
}
/* Save the mode so we can look up the closest match later */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_copyp(&window->requested_fullscreen_mode, mode);
} else {
SDL_zero(window->requested_fullscreen_mode);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Copy to the current mode now, in case an asynchronous fullscreen window request
* is in progress. It will be overwritten if a new request is made.
*/
SDL_copyp(&window->current_fullscreen_mode, &window->requested_fullscreen_mode);
if (SDL_WINDOW_FULLSCREEN_VISIBLE(window)) {
SDL_UpdateFullscreenMode(window, SDL_TRUE, SDL_TRUE);
SDL_SyncIfRequired(window);
}
return 0;
}
const SDL_DisplayMode *SDL_GetWindowFullscreenMode(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, NULL);
CHECK_WINDOW_NOT_POPUP(window, NULL);
if (window->flags & SDL_WINDOW_FULLSCREEN) {
return SDL_GetFullscreenModeMatch(&window->current_fullscreen_mode);
} else {
return SDL_GetFullscreenModeMatch(&window->requested_fullscreen_mode);
}
}
void *SDL_GetWindowICCProfile(SDL_Window *window, size_t *size)
{
if (!_this->GetWindowICCProfile) {
SDL_Unsupported();
return NULL;
}
return _this->GetWindowICCProfile(_this, window, size);
}
Uint32 SDL_GetWindowPixelFormat(SDL_Window *window)
{
SDL_DisplayID displayID;
const SDL_DisplayMode *mode;
CHECK_WINDOW_MAGIC(window, SDL_PIXELFORMAT_UNKNOWN);
displayID = SDL_GetDisplayForWindow(window);
mode = SDL_GetCurrentDisplayMode(displayID);
if (mode) {
return mode->format;
} else {
return SDL_PIXELFORMAT_UNKNOWN;
}
}
#define CREATE_FLAGS \
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
(SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY | SDL_WINDOW_ALWAYS_ON_TOP | SDL_WINDOW_POPUP_MENU | SDL_WINDOW_UTILITY | SDL_WINDOW_TOOLTIP | SDL_WINDOW_VULKAN | SDL_WINDOW_MINIMIZED | SDL_WINDOW_METAL | SDL_WINDOW_TRANSPARENT | SDL_WINDOW_NOT_FOCUSABLE)
static SDL_INLINE SDL_bool IsAcceptingDragAndDrop(void)
{
if (SDL_EventEnabled(SDL_EVENT_DROP_FILE) || SDL_EventEnabled(SDL_EVENT_DROP_TEXT)) {
return SDL_TRUE;
}
return SDL_FALSE;
}
/* prepare a newly-created window */
static SDL_INLINE void PrepareDragAndDropSupport(SDL_Window *window)
{
if (_this->AcceptDragAndDrop) {
_this->AcceptDragAndDrop(window, IsAcceptingDragAndDrop());
}
}
/* toggle d'n'd for all existing windows. */
void SDL_ToggleDragAndDropSupport(void)
{
if (_this && _this->AcceptDragAndDrop) {
const SDL_bool enable = IsAcceptingDragAndDrop();
SDL_Window *window;
for (window = _this->windows; window; window = window->next) {
_this->AcceptDragAndDrop(window, enable);
}
}
}
static void ApplyWindowFlags(SDL_Window *window, Uint32 flags)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!(flags & (SDL_WINDOW_MINIMIZED | SDL_WINDOW_MAXIMIZED))) {
SDL_RestoreWindow(window);
}
if (flags & SDL_WINDOW_MAXIMIZED) {
SDL_MaximizeWindow(window);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_SetWindowFullscreen(window, (flags & SDL_WINDOW_FULLSCREEN) != 0);
if (flags & SDL_WINDOW_MINIMIZED) {
SDL_MinimizeWindow(window);
}
if (flags & SDL_WINDOW_MOUSE_GRABBED) {
/* We must specifically call SDL_SetWindowGrab() and not
SDL_SetWindowMouseGrab() here because older applications may use
this flag plus SDL_HINT_GRAB_KEYBOARD to indicate that they want
the keyboard grabbed too and SDL_SetWindowMouseGrab() won't do that.
*/
SDL_SetWindowGrab(window, SDL_TRUE);
}
if (flags & SDL_WINDOW_KEYBOARD_GRABBED) {
SDL_SetWindowKeyboardGrab(window, SDL_TRUE);
}
}
static void SDL_FinishWindowCreation(SDL_Window *window, Uint32 flags)
{
PrepareDragAndDropSupport(window);
ApplyWindowFlags(window, flags);
if (!(flags & SDL_WINDOW_HIDDEN)) {
SDL_ShowWindow(window);
}
}
static int SDL_ContextNotSupported(const char *name)
{
return SDL_SetError("%s support is either not configured in SDL "
"or not available in current SDL video driver "
"(%s) or platform",
name,
_this->name);
}
static int SDL_DllNotSupported(const char *name)
{
return SDL_SetError("No dynamic %s support in current SDL video driver (%s)", name, _this->name);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
static struct {
const char *property_name;
Uint32 flag;
SDL_bool invert_value;
} SDL_WindowFlagProperties[] = {
{ SDL_PROPERTY_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN, SDL_WINDOW_ALWAYS_ON_TOP, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_BORDERLESS_BOOLEAN, SDL_WINDOW_BORDERLESS, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_FOCUSABLE_BOOLEAN, SDL_WINDOW_NOT_FOCUSABLE, SDL_TRUE },
{ SDL_PROPERTY_WINDOW_CREATE_FULLSCREEN_BOOLEAN, SDL_WINDOW_FULLSCREEN, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_HIDDEN_BOOLEAN, SDL_WINDOW_HIDDEN, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_HIGH_PIXEL_DENSITY_BOOLEAN, SDL_WINDOW_HIGH_PIXEL_DENSITY, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_MAXIMIZED_BOOLEAN, SDL_WINDOW_MAXIMIZED, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_MENU_BOOLEAN, SDL_WINDOW_POPUP_MENU, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_METAL_BOOLEAN, SDL_WINDOW_METAL, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_MINIMIZED_BOOLEAN, SDL_WINDOW_MINIMIZED, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_MOUSE_GRABBED_BOOLEAN, SDL_WINDOW_MOUSE_GRABBED, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_OPENGL_BOOLEAN, SDL_WINDOW_OPENGL, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_RESIZABLE_BOOLEAN, SDL_WINDOW_RESIZABLE, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_TRANSPARENT_BOOLEAN, SDL_WINDOW_TRANSPARENT, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_TOOLTIP_BOOLEAN, SDL_WINDOW_TOOLTIP, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_UTILITY_BOOLEAN, SDL_WINDOW_UTILITY, SDL_FALSE },
{ SDL_PROPERTY_WINDOW_CREATE_VULKAN_BOOLEAN, SDL_WINDOW_VULKAN, SDL_FALSE }
};
static Uint32 SDL_GetWindowFlagProperties(SDL_PropertiesID props)
{
unsigned i;
Uint32 flags = (Uint32)SDL_GetNumberProperty(props, "flags", 0);
for (i = 0; i < SDL_arraysize(SDL_WindowFlagProperties); ++i) {
if (SDL_WindowFlagProperties[i].invert_value) {
if (!SDL_GetBooleanProperty(props, SDL_WindowFlagProperties[i].property_name, SDL_TRUE)) {
flags |= SDL_WindowFlagProperties[i].flag;
}
} else {
if (SDL_GetBooleanProperty(props, SDL_WindowFlagProperties[i].property_name, SDL_FALSE)) {
flags |= SDL_WindowFlagProperties[i].flag;
}
}
}
return flags;
}
SDL_Window *SDL_CreateWindowWithProperties(SDL_PropertiesID props)
{
SDL_Window *window;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
const char *title = SDL_GetStringProperty(props, SDL_PROPERTY_WINDOW_CREATE_TITLE_STRING, NULL);
int x = (int)SDL_GetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_X_NUMBER, SDL_WINDOWPOS_UNDEFINED);
int y = (int)SDL_GetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_Y_NUMBER, SDL_WINDOWPOS_UNDEFINED);
int w = (int)SDL_GetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_WIDTH_NUMBER, 0);
int h = (int)SDL_GetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_HEIGHT_NUMBER, 0);
SDL_Window *parent = SDL_GetProperty(props, SDL_PROPERTY_WINDOW_CREATE_PARENT_POINTER, NULL);
Uint32 flags = SDL_GetWindowFlagProperties(props);
Uint32 type_flags, graphics_flags;
SDL_bool undefined_x = SDL_FALSE;
SDL_bool undefined_y = SDL_FALSE;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
/* Initialize the video system if needed */
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
return NULL;
}
/* Make clang-tidy happy */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return NULL;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if ((flags & (SDL_WINDOW_TOOLTIP | SDL_WINDOW_POPUP_MENU)) != 0) {
if (!(_this->device_caps & VIDEO_DEVICE_CAPS_HAS_POPUP_WINDOW_SUPPORT)) {
SDL_Unsupported();
return NULL;
}
/* Tooltip and popup menu window must specify a parent window */
if (!parent || parent->magic != &_this->window_magic) {
SDL_SetError("Tooltip and popup menu windows must specify a parent window");
return NULL;
}
/* Remove invalid flags */
flags &= ~(SDL_WINDOW_MINIMIZED | SDL_WINDOW_MAXIMIZED | SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Ensure no more than one of these flags is set */
type_flags = flags & (SDL_WINDOW_UTILITY | SDL_WINDOW_TOOLTIP | SDL_WINDOW_POPUP_MENU);
if (type_flags & (type_flags - 1)) {
SDL_SetError("Conflicting window type flags specified: 0x%.8x", (unsigned int)type_flags);
return NULL;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Make sure the display list is up to date for window placement */
if (_this->RefreshDisplays) {
_this->RefreshDisplays(_this);
}
/* Some platforms can't create zero-sized windows */
if (w < 1) {
w = 1;
}
if (h < 1) {
h = 1;
}
if (SDL_WINDOWPOS_ISUNDEFINED(x) || SDL_WINDOWPOS_ISUNDEFINED(y) ||
SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISCENTERED(y)) {
SDL_DisplayID displayID = 0;
SDL_Rect bounds;
if ((SDL_WINDOWPOS_ISUNDEFINED(x) || SDL_WINDOWPOS_ISCENTERED(x)) && (x & 0xFFFF)) {
displayID = (x & 0xFFFF);
} else if ((SDL_WINDOWPOS_ISUNDEFINED(y) || SDL_WINDOWPOS_ISCENTERED(y)) && (y & 0xFFFF)) {
displayID = (y & 0xFFFF);
}
if (displayID == 0 || SDL_GetDisplayIndex(displayID) < 0) {
displayID = SDL_GetPrimaryDisplay();
}
SDL_zero(bounds);
SDL_GetDisplayBounds(displayID, &bounds);
if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISUNDEFINED(x)) {
if (SDL_WINDOWPOS_ISUNDEFINED(x)) {
undefined_x = SDL_TRUE;
}
x = bounds.x + (bounds.w - w) / 2;
}
if (SDL_WINDOWPOS_ISCENTERED(y) || SDL_WINDOWPOS_ISUNDEFINED(y)) {
if (SDL_WINDOWPOS_ISUNDEFINED(y)) {
undefined_y = SDL_TRUE;
}
y = bounds.y + (bounds.h - h) / 2;
}
}
/* ensure no more than one of these flags is set */
graphics_flags = flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_METAL | SDL_WINDOW_VULKAN);
if (graphics_flags & (graphics_flags - 1)) {
SDL_SetError("Conflicting window graphics flags specified: 0x%.8x", (unsigned int)graphics_flags);
return NULL;
}
/* Some platforms have certain graphics backends enabled by default */
if (!graphics_flags && !SDL_IsVideoContextExternal()) {
flags |= SDL_DefaultGraphicsBackends(_this);
}
if (flags & SDL_WINDOW_OPENGL) {
if (!_this->GL_CreateContext) {
SDL_ContextNotSupported("OpenGL");
return NULL;
}
if (SDL_GL_LoadLibrary(NULL) < 0) {
return NULL;
}
}
if (flags & SDL_WINDOW_VULKAN) {
if (!_this->Vulkan_CreateSurface) {
SDL_ContextNotSupported("Vulkan");
return NULL;
}
if (SDL_Vulkan_LoadLibrary(NULL) < 0) {
return NULL;
}
}
if (flags & SDL_WINDOW_METAL) {
if (!_this->Metal_CreateView) {
SDL_ContextNotSupported("Metal");
return NULL;
}
}
window = (SDL_Window *)SDL_calloc(1, sizeof(*window));
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!window) {
return NULL;
}
window->magic = &_this->window_magic;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
window->id = SDL_GetNextObjectID();
window->floating.x = window->windowed.x = window->x = x;
window->floating.y = window->windowed.y = window->y = y;
window->floating.w = window->windowed.w = window->w = w;
window->floating.h = window->windowed.h = window->h = h;
window->undefined_x = undefined_x;
window->undefined_y = undefined_y;
if (flags & SDL_WINDOW_FULLSCREEN) {
SDL_VideoDisplay *display = SDL_GetVideoDisplayForWindow(window);
SDL_Rect bounds;
SDL_GetDisplayBounds(display->id, &bounds);
window->x = bounds.x;
window->y = bounds.y;
window->w = bounds.w;
window->h = bounds.h;
}
window->flags = ((flags & CREATE_FLAGS) | SDL_WINDOW_HIDDEN);
window->display_scale = 1.0f;
window->opacity = 1.0f;
window->next = _this->windows;
window->is_destroying = SDL_FALSE;
window->last_displayID = SDL_GetDisplayForWindow(window);
if (_this->windows) {
_this->windows->prev = window;
}
_this->windows = window;
if (parent) {
window->parent = parent;
window->next_sibling = parent->first_child;
if (parent->first_child) {
parent->first_child->prev_sibling = window;
}
parent->first_child = window;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->CreateSDLWindow && _this->CreateSDLWindow(_this, window, props) < 0) {
SDL_DestroyWindow(window);
return NULL;
}
/* Clear minimized if not on windows, only windows handles it at create rather than FinishWindowCreation,
* but it's important or window focus will get broken on windows!
*/
#if !defined(__WIN32__) && !defined(__GDK__)
if (window->flags & SDL_WINDOW_MINIMIZED) {
window->flags &= ~SDL_WINDOW_MINIMIZED;
}
#endif
#if defined(__WINRT__) && (NTDDI_VERSION < NTDDI_WIN10)
/* HACK: WinRT 8.x apps can't choose whether or not they are fullscreen
or not. The user can choose this, via OS-provided UI, but this can't
be set programmatically.
Just look at what SDL's WinRT video backend code detected with regards
to fullscreen (being active, or not), and figure out a return/error code
from that.
*/
flags = window->flags;
#endif
if (title) {
SDL_SetWindowTitle(window, title);
}
SDL_FinishWindowCreation(window, flags);
/* Make sure window pixel size is up to date */
SDL_CheckWindowPixelSizeChanged(window);
return window;
}
SDL_Window *SDL_CreateWindow(const char *title, int w, int h, Uint32 flags)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_Window *window;
SDL_PropertiesID props = SDL_CreateProperties();
if (title && *title) {
SDL_SetStringProperty(props, SDL_PROPERTY_WINDOW_CREATE_TITLE_STRING, title);
}
SDL_SetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_WIDTH_NUMBER, w);
SDL_SetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_HEIGHT_NUMBER, h);
SDL_SetNumberProperty(props, "flags", flags);
window = SDL_CreateWindowWithProperties(props);
SDL_DestroyProperties(props);
return window;
}
SDL_Window *SDL_CreatePopupWindow(SDL_Window *parent, int offset_x, int offset_y, int w, int h, Uint32 flags)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_Window *window;
SDL_PropertiesID props = SDL_CreateProperties();
/* Popups must specify either the tooltip or popup menu window flags */
if (!(flags & (SDL_WINDOW_TOOLTIP | SDL_WINDOW_POPUP_MENU))) {
SDL_SetError("Popup windows must specify either the 'SDL_WINDOW_TOOLTIP' or the 'SDL_WINDOW_POPUP_MENU' flag");
return NULL;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_SetProperty(props, SDL_PROPERTY_WINDOW_CREATE_PARENT_POINTER, parent);
SDL_SetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_X_NUMBER, offset_x);
SDL_SetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_Y_NUMBER, offset_y);
SDL_SetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_WIDTH_NUMBER, w);
SDL_SetNumberProperty(props, SDL_PROPERTY_WINDOW_CREATE_HEIGHT_NUMBER, h);
SDL_SetNumberProperty(props, "flags", flags);
window = SDL_CreateWindowWithProperties(props);
SDL_DestroyProperties(props);
return window;
}
int SDL_RecreateWindow(SDL_Window *window, Uint32 flags)
{
SDL_bool loaded_opengl = SDL_FALSE;
SDL_bool need_gl_unload = SDL_FALSE;
SDL_bool need_gl_load = SDL_FALSE;
SDL_bool loaded_vulkan = SDL_FALSE;
SDL_bool need_vulkan_unload = SDL_FALSE;
SDL_bool need_vulkan_load = SDL_FALSE;
Uint32 graphics_flags;
/* ensure no more than one of these flags is set */
graphics_flags = flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_METAL | SDL_WINDOW_VULKAN);
if (graphics_flags & (graphics_flags - 1)) {
return SDL_SetError("Conflicting window flags specified");
}
if ((flags & SDL_WINDOW_OPENGL) && !_this->GL_CreateContext) {
return SDL_ContextNotSupported("OpenGL");
}
if ((flags & SDL_WINDOW_VULKAN) && !_this->Vulkan_CreateSurface) {
return SDL_ContextNotSupported("Vulkan");
}
if ((flags & SDL_WINDOW_METAL) && !_this->Metal_CreateView) {
return SDL_ContextNotSupported("Metal");
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (window->flags & SDL_WINDOW_EXTERNAL) {
/* Can't destroy and re-create external windows, hrm */
flags |= SDL_WINDOW_EXTERNAL;
} else {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
flags &= ~SDL_WINDOW_EXTERNAL;
}
/* Restore video mode, etc. */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!(window->flags & SDL_WINDOW_EXTERNAL)) {
const SDL_bool restore_on_show = window->restore_on_show;
SDL_HideWindow(window);
window->restore_on_show = restore_on_show;
}
/* Tear down the old native window */
SDL_DestroyWindowSurface(window);
if (_this->checked_texture_framebuffer) { /* never checked? No framebuffer to destroy. Don't risk calling the wrong implementation. */
if (_this->DestroyWindowFramebuffer) {
_this->DestroyWindowFramebuffer(_this, window);
}
}
if ((window->flags & SDL_WINDOW_OPENGL) != (flags & SDL_WINDOW_OPENGL)) {
if (flags & SDL_WINDOW_OPENGL) {
need_gl_load = SDL_TRUE;
} else {
need_gl_unload = SDL_TRUE;
}
} else if (window->flags & SDL_WINDOW_OPENGL) {
need_gl_unload = SDL_TRUE;
need_gl_load = SDL_TRUE;
}
if ((window->flags & SDL_WINDOW_VULKAN) != (flags & SDL_WINDOW_VULKAN)) {
if (flags & SDL_WINDOW_VULKAN) {
need_vulkan_load = SDL_TRUE;
} else {
need_vulkan_unload = SDL_TRUE;
}
} else if (window->flags & SDL_WINDOW_VULKAN) {
need_vulkan_unload = SDL_TRUE;
need_vulkan_load = SDL_TRUE;
}
if (need_gl_unload) {
SDL_GL_UnloadLibrary();
}
if (need_vulkan_unload) {
SDL_Vulkan_UnloadLibrary();
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->DestroyWindow && !(flags & SDL_WINDOW_EXTERNAL)) {
_this->DestroyWindow(_this, window);
}
if (need_gl_load) {
if (SDL_GL_LoadLibrary(NULL) < 0) {
return -1;
}
loaded_opengl = SDL_TRUE;
}
if (need_vulkan_load) {
if (SDL_Vulkan_LoadLibrary(NULL) < 0) {
return -1;
}
loaded_vulkan = SDL_TRUE;
}
window->flags = ((flags & CREATE_FLAGS) | SDL_WINDOW_HIDDEN);
window->is_destroying = SDL_FALSE;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->CreateSDLWindow && !(flags & SDL_WINDOW_EXTERNAL)) {
/* Reset the window size to the original floating value, so the
* recreated window has the proper base size.
*/
window->x = window->windowed.x = window->floating.x;
window->y = window->windowed.y = window->floating.y;
window->w = window->windowed.w = window->floating.w;
window->h = window->windowed.h = window->floating.h;
if (_this->CreateSDLWindow(_this, window, 0) < 0) {
if (loaded_opengl) {
SDL_GL_UnloadLibrary();
window->flags &= ~SDL_WINDOW_OPENGL;
}
if (loaded_vulkan) {
SDL_Vulkan_UnloadLibrary();
window->flags &= ~SDL_WINDOW_VULKAN;
}
return -1;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (flags & SDL_WINDOW_EXTERNAL) {
window->flags |= SDL_WINDOW_EXTERNAL;
}
if (_this->SetWindowTitle && window->title) {
_this->SetWindowTitle(_this, window);
}
if (_this->SetWindowIcon && window->icon) {
_this->SetWindowIcon(_this, window, window->icon);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->SetWindowMinimumSize && (window->min_w || window->min_h)) {
_this->SetWindowMinimumSize(_this, window);
}
if (_this->SetWindowMaximumSize && (window->max_w || window->max_h)) {
_this->SetWindowMaximumSize(_this, window);
}
if (window->hit_test) {
_this->SetWindowHitTest(window, SDL_TRUE);
}
SDL_FinishWindowCreation(window, flags);
return 0;
}
SDL_bool SDL_HasWindows(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return _this && _this->windows;
}
SDL_WindowID SDL_GetWindowID(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, 0);
return window->id;
}
SDL_Window *SDL_GetWindowFromID(SDL_WindowID id)
{
SDL_Window *window;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return NULL;
}
for (window = _this->windows; window; window = window->next) {
if (window->id == id) {
return window;
}
}
return NULL;
}
SDL_Window *SDL_GetWindowParent(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, NULL);
return window->parent;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_PropertiesID SDL_GetWindowProperties(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, 0);
if (window->props == 0) {
window->props = SDL_CreateProperties();
}
return window->props;
}
Uint32 SDL_GetWindowFlags(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, 0);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return window->flags | window->pending_flags;
}
int SDL_SetWindowTitle(SDL_Window *window, const char *title)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (title == window->title) {
return 0;
}
SDL_free(window->title);
window->title = SDL_strdup(title ? title : "");
if (_this->SetWindowTitle) {
_this->SetWindowTitle(_this, window);
}
return 0;
}
const char *SDL_GetWindowTitle(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, "");
return window->title ? window->title : "";
}
int SDL_SetWindowIcon(SDL_Window *window, SDL_Surface *icon)
{
CHECK_WINDOW_MAGIC(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!icon) {
return SDL_InvalidParamError("icon");
}
SDL_DestroySurface(window->icon);
/* Convert the icon into ARGB8888 */
window->icon = SDL_ConvertSurfaceFormat(icon, SDL_PIXELFORMAT_ARGB8888);
if (!window->icon) {
return -1;
}
if (!_this->SetWindowIcon) {
return SDL_Unsupported();
}
return _this->SetWindowIcon(_this, window, window->icon);
}
int SDL_SetWindowPosition(SDL_Window *window, int x, int y)
{
SDL_DisplayID original_displayID;
CHECK_WINDOW_MAGIC(window, -1);
original_displayID = SDL_GetDisplayForWindow(window);
if (SDL_WINDOWPOS_ISUNDEFINED(x)) {
x = window->windowed.x;
}
if (SDL_WINDOWPOS_ISUNDEFINED(y)) {
y = window->windowed.y;
}
if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISCENTERED(y)) {
SDL_DisplayID displayID = original_displayID;
SDL_Rect bounds;
if (SDL_WINDOWPOS_ISCENTERED(x) && (x & 0xFFFF)) {
displayID = (x & 0xFFFF);
} else if (SDL_WINDOWPOS_ISCENTERED(y) && (y & 0xFFFF)) {
displayID = (y & 0xFFFF);
}
if (displayID == 0 || SDL_GetDisplayIndex(displayID) < 0) {
displayID = SDL_GetPrimaryDisplay();
}
SDL_zero(bounds);
if (SDL_GetDisplayBounds(displayID, &bounds) < 0) {
return -1;
}
if (SDL_WINDOWPOS_ISCENTERED(x)) {
x = bounds.x + (bounds.w - window->windowed.w) / 2;
}
if (SDL_WINDOWPOS_ISCENTERED(y)) {
y = bounds.y + (bounds.h - window->windowed.h) / 2;
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
window->floating.x = x;
window->floating.y = y;
window->undefined_x = SDL_FALSE;
window->undefined_y = SDL_FALSE;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->SetWindowPosition) {
const int ret = _this->SetWindowPosition(_this, window);
if (!ret) {
SDL_SyncIfRequired(window);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return ret;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return SDL_Unsupported();
}
int SDL_GetWindowPosition(SDL_Window *window, int *x, int *y)
{
CHECK_WINDOW_MAGIC(window, -1);
/* Fullscreen windows are always at their display's origin */
if (window->flags & SDL_WINDOW_FULLSCREEN) {
SDL_DisplayID displayID;
if (x) {
*x = 0;
}
if (y) {
*y = 0;
}
/* Find the window's monitor and update to the
monitor offset. */
displayID = SDL_GetDisplayForWindow(window);
if (displayID != 0) {
SDL_Rect bounds;
SDL_zero(bounds);
SDL_GetDisplayBounds(displayID, &bounds);
if (x) {
*x = bounds.x;
}
if (y) {
*y = bounds.y;
}
}
} else {
if (x) {
*x = window->x;
}
if (y) {
*y = window->y;
}
}
return 0;
}
int SDL_SetWindowBordered(SDL_Window *window, SDL_bool bordered)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
const SDL_bool want = (bordered != SDL_FALSE); /* normalize the flag. */
const SDL_bool have = !(window->flags & SDL_WINDOW_BORDERLESS);
if ((want != have) && (_this->SetWindowBordered)) {
if (want) {
window->flags &= ~SDL_WINDOW_BORDERLESS;
} else {
window->flags |= SDL_WINDOW_BORDERLESS;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->SetWindowBordered(_this, window, want);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return 0;
}
int SDL_SetWindowResizable(SDL_Window *window, SDL_bool resizable)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
const SDL_bool want = (resizable != SDL_FALSE); /* normalize the flag. */
const SDL_bool have = ((window->flags & SDL_WINDOW_RESIZABLE) != 0);
if ((want != have) && (_this->SetWindowResizable)) {
if (want) {
window->flags |= SDL_WINDOW_RESIZABLE;
} else {
window->flags &= ~SDL_WINDOW_RESIZABLE;
SDL_copyp(&window->windowed, &window->floating);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->SetWindowResizable(_this, window, want);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return 0;
}
int SDL_SetWindowAlwaysOnTop(SDL_Window *window, SDL_bool on_top)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
const SDL_bool want = (on_top != SDL_FALSE); /* normalize the flag. */
const SDL_bool have = ((window->flags & SDL_WINDOW_ALWAYS_ON_TOP) != 0);
if ((want != have) && (_this->SetWindowAlwaysOnTop)) {
if (want) {
window->flags |= SDL_WINDOW_ALWAYS_ON_TOP;
} else {
window->flags &= ~SDL_WINDOW_ALWAYS_ON_TOP;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->SetWindowAlwaysOnTop(_this, window, want);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return 0;
}
int SDL_SetWindowSize(SDL_Window *window, int w, int h)
{
CHECK_WINDOW_MAGIC(window, -1);
if (w <= 0) {
return SDL_InvalidParamError("w");
}
if (h <= 0) {
return SDL_InvalidParamError("h");
}
/* Make sure we don't exceed any window size limits */
if (window->min_w && w < window->min_w) {
w = window->min_w;
}
if (window->max_w && w > window->max_w) {
w = window->max_w;
}
if (window->min_h && h < window->min_h) {
h = window->min_h;
}
if (window->max_h && h > window->max_h) {
h = window->max_h;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
window->floating.w = w;
window->floating.h = h;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->SetWindowSize) {
_this->SetWindowSize(_this, window);
SDL_SyncIfRequired(window);
} else {
return SDL_Unsupported();
}
return 0;
}
int SDL_GetWindowSize(SDL_Window *window, int *w, int *h)
{
CHECK_WINDOW_MAGIC(window, -1);
if (w) {
*w = window->w;
}
if (h) {
*h = window->h;
}
return 0;
}
int SDL_GetWindowBordersSize(SDL_Window *window, int *top, int *left, int *bottom, int *right)
{
int dummy = 0;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!top) {
top = &dummy;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!left) {
left = &dummy;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!right) {
right = &dummy;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!bottom) {
bottom = &dummy;
}
/* Always initialize, so applications don't have to care */
*top = *left = *bottom = *right = 0;
CHECK_WINDOW_MAGIC(window, -1);
if (!_this->GetWindowBordersSize) {
return SDL_Unsupported();
}
return _this->GetWindowBordersSize(_this, window, top, left, bottom, right);
}
int SDL_GetWindowSizeInPixels(SDL_Window *window, int *w, int *h)
{
int filter;
CHECK_WINDOW_MAGIC(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!w) {
w = &filter;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!h) {
h = &filter;
}
if (_this->GetWindowSizeInPixels) {
_this->GetWindowSizeInPixels(_this, window, w, h);
} else {
SDL_DisplayID displayID = SDL_GetDisplayForWindow(window);
const SDL_DisplayMode *mode;
SDL_GetWindowSize(window, w, h);
if (SDL_GetWindowFullscreenMode(window)) {
mode = SDL_GetCurrentDisplayMode(displayID);
} else {
mode = SDL_GetDesktopDisplayMode(displayID);
}
if (mode) {
*w = (int)SDL_ceilf(*w * mode->pixel_density);
*h = (int)SDL_ceilf(*h * mode->pixel_density);
}
}
return 0;
}
int SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
int w, h;
CHECK_WINDOW_MAGIC(window, -1);
if (min_w < 0) {
return SDL_InvalidParamError("min_w");
}
if (min_h < 0) {
return SDL_InvalidParamError("min_h");
}
if ((window->max_w && min_w > window->max_w) ||
(window->max_h && min_h > window->max_h)) {
return SDL_SetError("SDL_SetWindowMinimumSize(): Tried to set minimum size larger than maximum size");
}
window->min_w = min_w;
window->min_h = min_h;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->SetWindowMinimumSize) {
_this->SetWindowMinimumSize(_this, window);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Ensure that window is not smaller than minimal size */
w = window->min_w ? SDL_max(window->floating.w, window->min_w) : window->floating.w;
h = window->min_h ? SDL_max(window->floating.h, window->min_h) : window->floating.h;
return SDL_SetWindowSize(window, w, h);
}
int SDL_GetWindowMinimumSize(SDL_Window *window, int *min_w, int *min_h)
{
CHECK_WINDOW_MAGIC(window, -1);
if (min_w) {
*min_w = window->min_w;
}
if (min_h) {
*min_h = window->min_h;
}
return 0;
}
int SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
int w, h;
CHECK_WINDOW_MAGIC(window, -1);
if (max_w < 0) {
return SDL_InvalidParamError("max_w");
}
if (max_h < 0) {
return SDL_InvalidParamError("max_h");
}
if (max_w < window->min_w || max_h < window->min_h) {
return SDL_SetError("SDL_SetWindowMaximumSize(): Tried to set maximum size smaller than minimum size");
}
window->max_w = max_w;
window->max_h = max_h;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->SetWindowMaximumSize) {
_this->SetWindowMaximumSize(_this, window);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Ensure that window is not larger than maximal size */
w = window->max_w ? SDL_min(window->floating.w, window->max_w) : window->floating.w;
h = window->max_h ? SDL_min(window->floating.h, window->max_h) : window->floating.h;
return SDL_SetWindowSize(window, w, h);
}
int SDL_GetWindowMaximumSize(SDL_Window *window, int *max_w, int *max_h)
{
CHECK_WINDOW_MAGIC(window, -1);
if (max_w) {
*max_w = window->max_w;
}
if (max_h) {
*max_h = window->max_h;
}
return 0;
}
int SDL_ShowWindow(SDL_Window *window)
{
SDL_Window *child;
CHECK_WINDOW_MAGIC(window, -1);
if (!(window->flags & SDL_WINDOW_HIDDEN)) {
return 0;
}
/* If the parent is hidden, set the flag to restore this when the parent is shown */
if (window->parent && (window->parent->flags & SDL_WINDOW_HIDDEN)) {
window->restore_on_show = SDL_TRUE;
return 0;
}
if (_this->ShowWindow) {
_this->ShowWindow(_this, window);
} else {
SDL_SetMouseFocus(window);
SDL_SetKeyboardFocus(window);
}
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_SHOWN, 0, 0);
/* Restore child windows */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
for (child = window->first_child; child; child = child->next_sibling) {
if (!child->restore_on_show && (child->flags & SDL_WINDOW_HIDDEN)) {
break;
}
SDL_ShowWindow(child);
child->restore_on_show = SDL_FALSE;
}
return 0;
}
int SDL_HideWindow(SDL_Window *window)
{
SDL_Window *child;
CHECK_WINDOW_MAGIC(window, -1);
if (window->flags & SDL_WINDOW_HIDDEN) {
window->restore_on_show = SDL_FALSE;
return 0;
}
/* Hide all child windows */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
for (child = window->first_child; child; child = child->next_sibling) {
if (child->flags & SDL_WINDOW_HIDDEN) {
break;
}
SDL_HideWindow(child);
child->restore_on_show = SDL_TRUE;
}
/* Store the flags for restoration later. */
window->pending_flags = window->flags;
window->is_hiding = SDL_TRUE;
if (_this->HideWindow) {
_this->HideWindow(_this, window);
} else {
SDL_SetMouseFocus(NULL);
SDL_SetKeyboardFocus(NULL);
}
window->is_hiding = SDL_FALSE;
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_HIDDEN, 0, 0);
return 0;
}
int SDL_RaiseWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
if (window->flags & SDL_WINDOW_HIDDEN) {
return 0;
}
if (_this->RaiseWindow) {
_this->RaiseWindow(_this, window);
}
return 0;
}
int SDL_MaximizeWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this->MaximizeWindow) {
return SDL_Unsupported();
}
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
return SDL_SetError("A window without the 'SDL_WINDOW_RESIZABLE' flag can't be maximized");
}
if (window->flags & SDL_WINDOW_HIDDEN) {
window->pending_flags |= SDL_WINDOW_MAXIMIZED;
return 0;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->MaximizeWindow(_this, window);
SDL_SyncIfRequired(window);
return 0;
}
int SDL_MinimizeWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this->MinimizeWindow) {
return SDL_Unsupported();
}
if (window->flags & SDL_WINDOW_HIDDEN) {
window->pending_flags |= SDL_WINDOW_MINIMIZED;
return 0;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->MinimizeWindow(_this, window);
SDL_SyncIfRequired(window);
return 0;
}
int SDL_RestoreWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this->RestoreWindow) {
return SDL_Unsupported();
}
if (window->flags & SDL_WINDOW_HIDDEN) {
window->pending_flags &= ~(SDL_WINDOW_MAXIMIZED | SDL_WINDOW_MINIMIZED);
return 0;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->RestoreWindow(_this, window);
SDL_SyncIfRequired(window);
return 0;
}
int SDL_SetWindowFullscreen(SDL_Window *window, SDL_bool fullscreen)
{
int ret = 0;
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (window->flags & SDL_WINDOW_HIDDEN) {
if (fullscreen) {
window->pending_flags |= SDL_WINDOW_FULLSCREEN;
} else {
window->pending_flags &= ~SDL_WINDOW_FULLSCREEN;
}
return 0;
}
if (fullscreen) {
/* Set the current fullscreen mode to the desired mode */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_copyp(&window->current_fullscreen_mode, &window->requested_fullscreen_mode);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
ret = SDL_UpdateFullscreenMode(window, fullscreen, SDL_TRUE);
if (!fullscreen || ret != 0) {
/* Clear the current fullscreen mode. */
SDL_zero(window->current_fullscreen_mode);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (ret == 0) {
SDL_SyncIfRequired(window);
}
return ret;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
int SDL_SyncWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1)
if (_this->SyncWindow) {
return _this->SyncWindow(_this, window);
}
return 0;
}
static SDL_Surface *SDL_CreateWindowFramebuffer(SDL_Window *window)
{
Uint32 format = 0;
void *pixels = NULL;
int pitch = 0;
SDL_bool created_framebuffer = SDL_FALSE;
int w, h;
SDL_GetWindowSizeInPixels(window, &w, &h);
/* This will switch the video backend from using a software surface to
using a GPU texture through the 2D render API, if we think this would
be more efficient. This only checks once, on demand. */
if (!_this->checked_texture_framebuffer) {
SDL_bool attempt_texture_framebuffer = SDL_TRUE;
/* See if the user or application wants to specifically disable the framebuffer */
const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION);
if (hint) {
if ((*hint == '0') || (SDL_strcasecmp(hint, "false") == 0) || (SDL_strcasecmp(hint, "software") == 0)) {
attempt_texture_framebuffer = SDL_FALSE;
}
}
if (_this->is_dummy) { /* dummy driver never has GPU support, of course. */
attempt_texture_framebuffer = SDL_FALSE;
}
#ifdef __LINUX__
/* On WSL, direct X11 is faster than using OpenGL for window framebuffers, so try to detect WSL and avoid texture framebuffer. */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
else if ((_this->CreateWindowFramebuffer) && (SDL_strcmp(_this->name, "x11") == 0)) {
struct stat sb;
if ((stat("/proc/sys/fs/binfmt_misc/WSLInterop", &sb) == 0) || (stat("/run/WSL", &sb) == 0)) { /* if either of these exist, we're on WSL. */
attempt_texture_framebuffer = SDL_FALSE;
}
}
#endif
#if defined(__WIN32__) || defined(__WINGDK__) /* GDI BitBlt() is way faster than Direct3D dynamic textures right now. (!!! FIXME: is this still true?) */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
else if ((_this->CreateWindowFramebuffer) && (SDL_strcmp(_this->name, "windows") == 0)) {
attempt_texture_framebuffer = SDL_FALSE;
}
#endif
#ifdef __EMSCRIPTEN__
else {
attempt_texture_framebuffer = SDL_FALSE;
}
#endif
if (attempt_texture_framebuffer) {
if (SDL_CreateWindowTexture(_this, window, &format, &pixels, &pitch) == -1) {
/* !!! FIXME: if this failed halfway (made renderer, failed to make texture, etc),
!!! FIXME: we probably need to clean this up so it doesn't interfere with
!!! FIXME: a software fallback at the system level (can we blit to an
!!! FIXME: OpenGL window? etc). */
} else {
/* future attempts will just try to use a texture framebuffer. */
/* !!! FIXME: maybe we shouldn't override these but check if we used a texture
!!! FIXME: framebuffer at the right places; is it feasible we could have an
!!! FIXME: accelerated OpenGL window and a second ends up in software? */
_this->CreateWindowFramebuffer = SDL_CreateWindowTexture;
_this->UpdateWindowFramebuffer = SDL_UpdateWindowTexture;
_this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
created_framebuffer = SDL_TRUE;
}
}
_this->checked_texture_framebuffer = SDL_TRUE; /* don't check this again. */
}
if (!created_framebuffer) {
if (!_this->CreateWindowFramebuffer || !_this->UpdateWindowFramebuffer) {
return NULL;
}
if (_this->CreateWindowFramebuffer(_this, window, &format, &pixels, &pitch) < 0) {
return NULL;
}
}
if (window->surface) {
return window->surface;
}
return SDL_CreateSurfaceFrom(pixels, w, h, pitch, format);
}
SDL_bool SDL_HasWindowSurface(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, SDL_FALSE);
return window->surface ? SDL_TRUE : SDL_FALSE;
}
SDL_Surface *SDL_GetWindowSurface(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, NULL);
if (!window->surface_valid) {
SDL_DestroyWindowSurface(window);
window->surface = SDL_CreateWindowFramebuffer(window);
if (window->surface) {
window->surface_valid = SDL_TRUE;
window->surface->flags |= SDL_DONTFREE;
}
}
return window->surface;
}
int SDL_UpdateWindowSurface(SDL_Window *window)
{
SDL_Rect full_rect;
CHECK_WINDOW_MAGIC(window, -1);
full_rect.x = 0;
full_rect.y = 0;
SDL_GetWindowSizeInPixels(window, &full_rect.w, &full_rect.h);
return SDL_UpdateWindowSurfaceRects(window, &full_rect, 1);
}
int SDL_UpdateWindowSurfaceRects(SDL_Window *window, const SDL_Rect *rects,
int numrects)
{
CHECK_WINDOW_MAGIC(window, -1);
if (!window->surface_valid) {
return SDL_SetError("Window surface is invalid, please call SDL_GetWindowSurface() to get a new surface");
}
SDL_assert(_this->checked_texture_framebuffer); /* we should have done this before we had a valid surface. */
return _this->UpdateWindowFramebuffer(_this, window, rects, numrects);
}
int SDL_SetWindowOpacity(SDL_Window *window, float opacity)
{
int retval;
CHECK_WINDOW_MAGIC(window, -1);
if (!_this->SetWindowOpacity) {
return SDL_Unsupported();
}
if (opacity < 0.0f) {
opacity = 0.0f;
} else if (opacity > 1.0f) {
opacity = 1.0f;
}
retval = _this->SetWindowOpacity(_this, window, opacity);
if (retval == 0) {
window->opacity = opacity;
}
return retval;
}
int SDL_DestroyWindowSurface(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
if (window->surface) {
window->surface->flags &= ~SDL_DONTFREE;
SDL_DestroySurface(window->surface);
window->surface = NULL;
window->surface_valid = SDL_FALSE;
}
return 0;
}
int SDL_GetWindowOpacity(SDL_Window *window, float *out_opacity)
{
CHECK_WINDOW_MAGIC(window, -1);
if (out_opacity) {
*out_opacity = window->opacity;
}
return 0;
}
int SDL_SetWindowModalFor(SDL_Window *modal_window, SDL_Window *parent_window)
{
CHECK_WINDOW_MAGIC(modal_window, -1);
CHECK_WINDOW_MAGIC(parent_window, -1);
CHECK_WINDOW_NOT_POPUP(modal_window, -1);
CHECK_WINDOW_NOT_POPUP(parent_window, -1);
if (!_this->SetWindowModalFor) {
return SDL_Unsupported();
}
return _this->SetWindowModalFor(_this, modal_window, parent_window);
}
int SDL_SetWindowInputFocus(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (!_this->SetWindowInputFocus) {
return SDL_Unsupported();
}
return _this->SetWindowInputFocus(_this, window);
}
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
int SDL_SetWindowFocusable(SDL_Window *window, SDL_bool focusable)
{
CHECK_WINDOW_MAGIC(window, -1);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
const SDL_bool want = (focusable != SDL_FALSE); /* normalize the flag. */
const SDL_bool have = !(window->flags & SDL_WINDOW_NOT_FOCUSABLE);
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
if ((want != have) && (_this->SetWindowFocusable)) {
if (want) {
window->flags &= ~SDL_WINDOW_NOT_FOCUSABLE;
} else {
window->flags |= SDL_WINDOW_NOT_FOCUSABLE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
_this->SetWindowFocusable(_this, window, want);
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
}
return 0;
}
void SDL_UpdateWindowGrab(SDL_Window *window)
{
SDL_bool keyboard_grabbed, mouse_grabbed;
if (window->flags & SDL_WINDOW_INPUT_FOCUS) {
if (SDL_GetMouse()->relative_mode || (window->flags & SDL_WINDOW_MOUSE_GRABBED)) {
mouse_grabbed = SDL_TRUE;
} else {
mouse_grabbed = SDL_FALSE;
}
if (window->flags & SDL_WINDOW_KEYBOARD_GRABBED) {
keyboard_grabbed = SDL_TRUE;
} else {
keyboard_grabbed = SDL_FALSE;
}
} else {
mouse_grabbed = SDL_FALSE;
keyboard_grabbed = SDL_FALSE;
}
if (mouse_grabbed || keyboard_grabbed) {
if (_this->grabbed_window && (_this->grabbed_window != window)) {
/* stealing a grab from another window! */
_this->grabbed_window->flags &= ~(SDL_WINDOW_MOUSE_GRABBED | SDL_WINDOW_KEYBOARD_GRABBED);
if (_this->SetWindowMouseGrab) {
_this->SetWindowMouseGrab(_this, _this->grabbed_window, SDL_FALSE);
}
if (_this->SetWindowKeyboardGrab) {
_this->SetWindowKeyboardGrab(_this, _this->grabbed_window, SDL_FALSE);
}
}
_this->grabbed_window = window;
} else if (_this->grabbed_window == window) {
_this->grabbed_window = NULL; /* ungrabbing input. */
}
if (_this->SetWindowMouseGrab) {
_this->SetWindowMouseGrab(_this, window, mouse_grabbed);
}
if (_this->SetWindowKeyboardGrab) {
_this->SetWindowKeyboardGrab(_this, window, keyboard_grabbed);
}
}
int SDL_SetWindowGrab(SDL_Window *window, SDL_bool grabbed)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
SDL_SetWindowMouseGrab(window, grabbed);
if (SDL_GetHintBoolean(SDL_HINT_GRAB_KEYBOARD, SDL_FALSE)) {
SDL_SetWindowKeyboardGrab(window, grabbed);
}
return 0;
}
int SDL_SetWindowKeyboardGrab(SDL_Window *window, SDL_bool grabbed)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (window->flags & SDL_WINDOW_HIDDEN) {
if (grabbed) {
window->pending_flags |= SDL_WINDOW_KEYBOARD_GRABBED;
} else {
window->pending_flags &= ~SDL_WINDOW_KEYBOARD_GRABBED;
}
return 0;
}
if (!!grabbed == !!(window->flags & SDL_WINDOW_KEYBOARD_GRABBED)) {
return 0;
}
if (grabbed) {
window->flags |= SDL_WINDOW_KEYBOARD_GRABBED;
} else {
window->flags &= ~SDL_WINDOW_KEYBOARD_GRABBED;
}
SDL_UpdateWindowGrab(window);
return 0;
}
int SDL_SetWindowMouseGrab(SDL_Window *window, SDL_bool grabbed)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (window->flags & SDL_WINDOW_HIDDEN) {
if (grabbed) {
window->pending_flags |= SDL_WINDOW_MOUSE_GRABBED;
} else {
window->pending_flags &= ~SDL_WINDOW_MOUSE_GRABBED;
}
return 0;
}
if (!!grabbed == !!(window->flags & SDL_WINDOW_MOUSE_GRABBED)) {
return 0;
}
if (grabbed) {
window->flags |= SDL_WINDOW_MOUSE_GRABBED;
} else {
window->flags &= ~SDL_WINDOW_MOUSE_GRABBED;
}
SDL_UpdateWindowGrab(window);
return 0;
}
SDL_bool SDL_GetWindowGrab(SDL_Window *window)
{
return SDL_GetWindowKeyboardGrab(window) || SDL_GetWindowMouseGrab(window);
}
SDL_bool SDL_GetWindowKeyboardGrab(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, SDL_FALSE);
return window == _this->grabbed_window && (_this->grabbed_window->flags & SDL_WINDOW_KEYBOARD_GRABBED);
}
SDL_bool SDL_GetWindowMouseGrab(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, SDL_FALSE);
return window == _this->grabbed_window && (_this->grabbed_window->flags & SDL_WINDOW_MOUSE_GRABBED);
}
SDL_Window *SDL_GetGrabbedWindow(void)
{
if (_this->grabbed_window &&
(_this->grabbed_window->flags & (SDL_WINDOW_MOUSE_GRABBED | SDL_WINDOW_KEYBOARD_GRABBED)) != 0) {
return _this->grabbed_window;
} else {
return NULL;
}
}
int SDL_SetWindowMouseRect(SDL_Window *window, const SDL_Rect *rect)
{
CHECK_WINDOW_MAGIC(window, -1);
if (rect) {
SDL_memcpy(&window->mouse_rect, rect, sizeof(*rect));
} else {
SDL_zero(window->mouse_rect);
}
if (_this->SetWindowMouseRect) {
_this->SetWindowMouseRect(_this, window);
}
return 0;
}
const SDL_Rect *SDL_GetWindowMouseRect(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, NULL);
if (SDL_RectEmpty(&window->mouse_rect)) {
return NULL;
} else {
return &window->mouse_rect;
}
}
int SDL_FlashWindow(SDL_Window *window, SDL_FlashOperation operation)
{
CHECK_WINDOW_MAGIC(window, -1);
CHECK_WINDOW_NOT_POPUP(window, -1);
if (_this->FlashWindow) {
return _this->FlashWindow(_this, window, operation);
}
return SDL_Unsupported();
}
void SDL_OnWindowShown(SDL_Window *window)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Set window state if we have pending window flags cached */
ApplyWindowFlags(window, window->pending_flags);
window->pending_flags = 0;
}
void SDL_OnWindowHidden(SDL_Window *window)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* The window is already hidden at this point, so just change the mode back if necessary. */
SDL_UpdateFullscreenMode(window, SDL_FALSE, SDL_FALSE);
}
void SDL_OnWindowDisplayChanged(SDL_Window *window)
{
if (window->flags & SDL_WINDOW_FULLSCREEN) {
SDL_DisplayID displayID = SDL_GetDisplayForWindowPosition(window);
const SDL_DisplayMode *new_mode = NULL;
if (window->requested_fullscreen_mode.w != 0 || window->requested_fullscreen_mode.h != 0) {
SDL_bool include_high_density_modes = SDL_FALSE;
if (window->requested_fullscreen_mode.pixel_density > 1.0f) {
include_high_density_modes = SDL_TRUE;
}
new_mode = SDL_GetClosestFullscreenDisplayMode(displayID, window->requested_fullscreen_mode.w, window->requested_fullscreen_mode.h, window->requested_fullscreen_mode.refresh_rate, include_high_density_modes);
}
if (new_mode) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_copyp(&window->current_fullscreen_mode, new_mode);
} else {
SDL_zero(window->current_fullscreen_mode);
}
if (SDL_WINDOW_FULLSCREEN_VISIBLE(window)) {
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_UpdateFullscreenMode(window, SDL_TRUE, SDL_TRUE);
}
}
SDL_CheckWindowPixelSizeChanged(window);
}
void SDL_OnWindowMoved(SDL_Window *window)
{
SDL_CheckWindowDisplayChanged(window);
}
void SDL_OnWindowResized(SDL_Window *window)
{
SDL_CheckWindowDisplayChanged(window);
SDL_CheckWindowPixelSizeChanged(window);
}
void SDL_CheckWindowPixelSizeChanged(SDL_Window *window)
{
int pixel_w = 0, pixel_h = 0;
SDL_GetWindowSizeInPixels(window, &pixel_w, &pixel_h);
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED, pixel_w, pixel_h);
SDL_CheckWindowDisplayScaleChanged(window);
}
void SDL_OnWindowPixelSizeChanged(SDL_Window *window)
{
window->surface_valid = SDL_FALSE;
}
void SDL_OnWindowMinimized(SDL_Window *window)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (window->flags & SDL_WINDOW_FULLSCREEN) {
SDL_UpdateFullscreenMode(window, SDL_FALSE, SDL_FALSE);
}
}
void SDL_OnWindowMaximized(SDL_Window *window)
{
}
void SDL_OnWindowRestored(SDL_Window *window)
{
/*
* FIXME: Is this fine to just remove this, or should it be preserved just
* for the fullscreen case? In principle it seems like just hiding/showing
* windows shouldn't affect the stacking order; maybe the right fix is to
* re-decouple OnWindowShown and OnWindowRestored.
*/
/*SDL_RaiseWindow(window);*/
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (window->flags & SDL_WINDOW_FULLSCREEN) {
SDL_UpdateFullscreenMode(window, SDL_TRUE, SDL_FALSE);
}
}
void SDL_OnWindowEnter(SDL_Window *window)
{
if (_this->OnWindowEnter) {
_this->OnWindowEnter(_this, window);
}
}
void SDL_OnWindowLeave(SDL_Window *window)
{
}
void SDL_OnWindowFocusGained(SDL_Window *window)
{
SDL_Mouse *mouse = SDL_GetMouse();
if (mouse && mouse->relative_mode) {
SDL_SetMouseFocus(window);
if (mouse->relative_mode_warp) {
SDL_PerformWarpMouseInWindow(window, (float)window->w / 2.0f, (float)window->h / 2.0f, SDL_TRUE);
}
}
SDL_UpdateWindowGrab(window);
}
static SDL_bool SDL_ShouldMinimizeOnFocusLoss(SDL_Window *window)
{
const char *hint;
if (!(window->flags & SDL_WINDOW_FULLSCREEN) || window->is_destroying) {
return SDL_FALSE;
}
#if defined(__MACOS__) && defined(SDL_VIDEO_DRIVER_COCOA)
if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
if (Cocoa_IsWindowInFullscreenSpace(window)) {
return SDL_FALSE;
}
}
#endif
#ifdef __ANDROID__
{
extern SDL_bool Android_JNI_ShouldMinimizeOnFocusLoss(void);
if (!Android_JNI_ShouldMinimizeOnFocusLoss()) {
return SDL_FALSE;
}
}
#endif
/* Real fullscreen windows should minimize on focus loss so the desktop video mode is restored */
hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!hint || !*hint || SDL_strcasecmp(hint, "auto") == 0) {
if (window->fullscreen_exclusive && !SDL_ModeSwitchingEmulated(_this)) {
return SDL_TRUE;
} else {
return SDL_FALSE;
}
}
return SDL_GetHintBoolean(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, SDL_FALSE);
}
void SDL_OnWindowFocusLost(SDL_Window *window)
{
SDL_UpdateWindowGrab(window);
if (SDL_ShouldMinimizeOnFocusLoss(window)) {
SDL_MinimizeWindow(window);
}
}
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
SDL_Window *SDL_GetToplevelForKeyboardFocus(void)
{
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
SDL_Window *focus = SDL_GetKeyboardFocus();
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
if (focus) {
/* Get the toplevel parent window. */
while (focus->parent) {
focus = focus->parent;
}
}
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
return focus;
}
void SDL_DestroyWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window,);
window->is_destroying = SDL_TRUE;
/* Destroy any child windows of this window */
while (window->first_child) {
SDL_DestroyWindow(window->first_child);
}
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_DESTROYED, 0, 0);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_DestroyProperties(window->props);
/* If this is a child window, unlink it from its siblings */
if (window->parent) {
if (window->next_sibling) {
window->next_sibling->prev_sibling = window->prev_sibling;
}
if (window->prev_sibling) {
window->prev_sibling->next_sibling = window->next_sibling;
} else {
window->parent->first_child = window->next_sibling;
}
}
/* Restore video mode, etc. */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_UpdateFullscreenMode(window, SDL_FALSE, SDL_TRUE);
if (!(window->flags & SDL_WINDOW_EXTERNAL)) {
SDL_HideWindow(window);
}
/* Make sure this window no longer has focus */
if (SDL_GetKeyboardFocus() == window) {
SDL_SetKeyboardFocus(NULL);
}
if (SDL_GetMouseFocus() == window) {
SDL_SetMouseFocus(NULL);
}
SDL_DestroyWindowSurface(window);
if (_this->checked_texture_framebuffer) { /* never checked? No framebuffer to destroy. Don't risk calling the wrong implementation. */
if (_this->DestroyWindowFramebuffer) {
_this->DestroyWindowFramebuffer(_this, window);
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
/* Make no context current if this is the current context window */
if (window->flags & SDL_WINDOW_OPENGL) {
if (_this->current_glwin == window) {
SDL_GL_MakeCurrent(window, NULL);
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (_this->DestroyWindow) {
_this->DestroyWindow(_this, window);
}
/* Unload the graphics libraries after the window is destroyed, which may clean up EGL surfaces */
if (window->flags & SDL_WINDOW_OPENGL) {
SDL_GL_UnloadLibrary();
}
if (window->flags & SDL_WINDOW_VULKAN) {
SDL_Vulkan_UnloadLibrary();
}
if (_this->grabbed_window == window) {
_this->grabbed_window = NULL; /* ungrabbing input. */
}
if (_this->current_glwin == window) {
_this->current_glwin = NULL;
}
if (_this->wakeup_window == window) {
_this->wakeup_window = NULL;
}
/* Now invalidate magic */
window->magic = NULL;
/* Free memory associated with the window */
SDL_free(window->title);
SDL_DestroySurface(window->icon);
/* Unlink the window from the list */
if (window->next) {
window->next->prev = window->prev;
}
if (window->prev) {
window->prev->next = window->next;
} else {
_this->windows = window->next;
}
SDL_free(window);
}
SDL_bool SDL_ScreenSaverEnabled(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_TRUE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return !_this->suspend_screensaver;
}
int SDL_EnableScreenSaver(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return 0;
}
if (!_this->suspend_screensaver) {
return 0;
}
_this->suspend_screensaver = SDL_FALSE;
if (_this->SuspendScreenSaver) {
return _this->SuspendScreenSaver(_this);
}
return SDL_Unsupported();
}
int SDL_DisableScreenSaver(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return 0;
}
if (_this->suspend_screensaver) {
return 0;
}
_this->suspend_screensaver = SDL_TRUE;
if (_this->SuspendScreenSaver) {
return _this->SuspendScreenSaver(_this);
}
return SDL_Unsupported();
}
void SDL_VideoQuit(void)
{
int i;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return;
}
/* Make sure we don't try to serve clipboard data after this */
SDL_ClearClipboardData();
/* Halt event processing before doing anything else */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_QuitVideoCapture();
SDL_QuitTouch();
SDL_QuitMouse();
SDL_QuitKeyboard();
SDL_QuitSubSystem(SDL_INIT_EVENTS);
SDL_EnableScreenSaver();
/* Clean up the system video */
while (_this->windows) {
SDL_DestroyWindow(_this->windows);
}
_this->VideoQuit(_this);
for (i = _this->num_displays; i--; ) {
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
SDL_VideoDisplay *display = _this->displays[i];
SDL_DelVideoDisplay(display->id, SDL_FALSE);
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
SDL_assert(_this->num_displays == 0);
SDL_free(_this->displays);
_this->displays = NULL;
if (_this->primary_selection_text) {
SDL_free(_this->primary_selection_text);
_this->primary_selection_text = NULL;
}
_this->free(_this);
_this = NULL;
}
int SDL_GL_LoadLibrary(const char *path)
{
int retval;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_UninitializedVideo();
}
if (_this->gl_config.driver_loaded) {
if (path && SDL_strcmp(path, _this->gl_config.driver_path) != 0) {
return SDL_SetError("OpenGL library already loaded");
}
retval = 0;
} else {
if (!_this->GL_LoadLibrary) {
return SDL_DllNotSupported("OpenGL");
}
retval = _this->GL_LoadLibrary(_this, path);
}
if (retval == 0) {
++_this->gl_config.driver_loaded;
} else {
if (_this->GL_UnloadLibrary) {
_this->GL_UnloadLibrary(_this);
}
}
return retval;
}
SDL_FunctionPointer SDL_GL_GetProcAddress(const char *proc)
{
SDL_FunctionPointer func;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
func = NULL;
if (_this->GL_GetProcAddress) {
if (_this->gl_config.driver_loaded) {
func = _this->GL_GetProcAddress(_this, proc);
} else {
SDL_SetError("No GL driver has been loaded");
}
} else {
SDL_SetError("No dynamic GL support in current SDL video driver (%s)", _this->name);
}
return func;
}
SDL_FunctionPointer SDL_EGL_GetProcAddress(const char *proc)
{
#ifdef SDL_VIDEO_OPENGL_EGL
SDL_FunctionPointer func;
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
func = NULL;
if (_this->egl_data) {
func = SDL_EGL_GetProcAddressInternal(_this, proc);
} else {
SDL_SetError("No EGL library has been loaded");
}
return func;
#else
SDL_SetError("SDL was not built with EGL support");
return NULL;
#endif
}
void SDL_GL_UnloadLibrary(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return;
}
if (_this->gl_config.driver_loaded > 0) {
if (--_this->gl_config.driver_loaded > 0) {
return;
}
if (_this->GL_UnloadLibrary) {
_this->GL_UnloadLibrary(_this);
}
}
}
#if defined(SDL_VIDEO_OPENGL) || defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
typedef GLenum (APIENTRY* PFNGLGETERRORPROC) (void);
typedef void (APIENTRY* PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
typedef const GLubyte *(APIENTRY* PFNGLGETSTRINGPROC) (GLenum name);
#ifndef SDL_VIDEO_OPENGL
typedef const GLubyte *(APIENTRY* PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
#endif
static SDL_INLINE SDL_bool isAtLeastGL3(const char *verstr)
{
return verstr && (SDL_atoi(verstr) >= 3);
}
#endif /* SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2 */
SDL_bool SDL_GL_ExtensionSupported(const char *extension)
{
#if defined(SDL_VIDEO_OPENGL) || defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
PFNGLGETSTRINGPROC glGetStringFunc;
const char *extensions;
const char *start;
const char *where, *terminator;
/* Extension names should not have spaces. */
where = SDL_strchr(extension, ' ');
if (where || *extension == '\0') {
return SDL_FALSE;
}
/* See if there's an environment variable override */
start = SDL_getenv(extension);
if (start && *start == '0') {
return SDL_FALSE;
}
/* Lookup the available extensions */
glGetStringFunc = (PFNGLGETSTRINGPROC)SDL_GL_GetProcAddress("glGetString");
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!glGetStringFunc) {
return SDL_FALSE;
}
if (isAtLeastGL3((const char *)glGetStringFunc(GL_VERSION))) {
PFNGLGETSTRINGIPROC glGetStringiFunc;
PFNGLGETINTEGERVPROC glGetIntegervFunc;
GLint num_exts = 0;
GLint i;
glGetStringiFunc = (PFNGLGETSTRINGIPROC)SDL_GL_GetProcAddress("glGetStringi");
glGetIntegervFunc = (PFNGLGETINTEGERVPROC)SDL_GL_GetProcAddress("glGetIntegerv");
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if ((!glGetStringiFunc) || (!glGetIntegervFunc)) {
return SDL_FALSE;
}
#ifndef GL_NUM_EXTENSIONS
#define GL_NUM_EXTENSIONS 0x821D
#endif
glGetIntegervFunc(GL_NUM_EXTENSIONS, &num_exts);
for (i = 0; i < num_exts; i++) {
const char *thisext = (const char *)glGetStringiFunc(GL_EXTENSIONS, i);
if (SDL_strcmp(thisext, extension) == 0) {
return SDL_TRUE;
}
}
return SDL_FALSE;
}
/* Try the old way with glGetString(GL_EXTENSIONS) ... */
extensions = (const char *)glGetStringFunc(GL_EXTENSIONS);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!extensions) {
return SDL_FALSE;
}
/*
* It takes a bit of care to be fool-proof about parsing the OpenGL
* extensions string. Don't be fooled by sub-strings, etc.
*/
start = extensions;
for (;;) {
where = SDL_strstr(start, extension);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!where) {
break;
}
terminator = where + SDL_strlen(extension);
if (where == extensions || *(where - 1) == ' ') {
if (*terminator == ' ' || *terminator == '\0') {
return SDL_TRUE;
}
}
start = terminator;
}
return SDL_FALSE;
#else
return SDL_FALSE;
#endif
}
/* Deduce supported ES profile versions from the supported
ARB_ES*_compatibility extensions. There is no direct query.
This is normally only called when the OpenGL driver supports
{GLX,WGL}_EXT_create_context_es2_profile.
*/
void SDL_GL_DeduceMaxSupportedESProfile(int *major, int *minor)
{
/* THIS REQUIRES AN EXISTING GL CONTEXT THAT HAS BEEN MADE CURRENT. */
/* Please refer to https://bugzilla.libsdl.org/show_bug.cgi?id=3725 for discussion. */
#if defined(SDL_VIDEO_OPENGL) || defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
/* XXX This is fragile; it will break in the event of release of
* new versions of OpenGL ES.
*/
if (SDL_GL_ExtensionSupported("GL_ARB_ES3_2_compatibility")) {
*major = 3;
*minor = 2;
} else if (SDL_GL_ExtensionSupported("GL_ARB_ES3_1_compatibility")) {
*major = 3;
*minor = 1;
} else if (SDL_GL_ExtensionSupported("GL_ARB_ES3_compatibility")) {
*major = 3;
*minor = 0;
} else {
*major = 2;
*minor = 0;
}
#endif
}
void SDL_EGL_SetEGLAttributeCallbacks(SDL_EGLAttribArrayCallback platformAttribCallback,
SDL_EGLIntArrayCallback surfaceAttribCallback,
SDL_EGLIntArrayCallback contextAttribCallback)
{
if (!_this) {
return;
}
_this->egl_platformattrib_callback = platformAttribCallback;
_this->egl_surfaceattrib_callback = surfaceAttribCallback;
_this->egl_contextattrib_callback = contextAttribCallback;
}
void SDL_GL_ResetAttributes(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return;
}
_this->egl_platformattrib_callback = NULL;
_this->egl_surfaceattrib_callback = NULL;
_this->egl_contextattrib_callback = NULL;
_this->gl_config.red_size = 8;
_this->gl_config.green_size = 8;
_this->gl_config.blue_size = 8;
_this->gl_config.alpha_size = 8;
_this->gl_config.buffer_size = 0;
_this->gl_config.depth_size = 16;
_this->gl_config.stencil_size = 0;
_this->gl_config.double_buffer = 1;
_this->gl_config.accum_red_size = 0;
_this->gl_config.accum_green_size = 0;
_this->gl_config.accum_blue_size = 0;
_this->gl_config.accum_alpha_size = 0;
_this->gl_config.stereo = 0;
_this->gl_config.multisamplebuffers = 0;
_this->gl_config.multisamplesamples = 0;
_this->gl_config.floatbuffers = 0;
_this->gl_config.retained_backing = 1;
_this->gl_config.accelerated = -1; /* accelerated or not, both are fine */
#ifdef SDL_VIDEO_OPENGL
_this->gl_config.major_version = 2;
_this->gl_config.minor_version = 1;
_this->gl_config.profile_mask = 0;
#elif defined(SDL_VIDEO_OPENGL_ES2)
_this->gl_config.major_version = 2;
_this->gl_config.minor_version = 0;
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
#elif defined(SDL_VIDEO_OPENGL_ES)
_this->gl_config.major_version = 1;
_this->gl_config.minor_version = 1;
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
#endif
if (_this->GL_DefaultProfileConfig) {
_this->GL_DefaultProfileConfig(_this, &_this->gl_config.profile_mask,
&_this->gl_config.major_version,
&_this->gl_config.minor_version);
}
_this->gl_config.flags = 0;
_this->gl_config.framebuffer_srgb_capable = 0;
_this->gl_config.no_error = 0;
_this->gl_config.release_behavior = SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH;
_this->gl_config.reset_notification = SDL_GL_CONTEXT_RESET_NO_NOTIFICATION;
_this->gl_config.share_with_current_context = 0;
_this->gl_config.egl_platform = 0;
}
int SDL_GL_SetAttribute(SDL_GLattr attr, int value)
{
#if defined(SDL_VIDEO_OPENGL) || defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
int retval;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_UninitializedVideo();
}
retval = 0;
switch (attr) {
case SDL_GL_RED_SIZE:
_this->gl_config.red_size = value;
break;
case SDL_GL_GREEN_SIZE:
_this->gl_config.green_size = value;
break;
case SDL_GL_BLUE_SIZE:
_this->gl_config.blue_size = value;
break;
case SDL_GL_ALPHA_SIZE:
_this->gl_config.alpha_size = value;
break;
case SDL_GL_DOUBLEBUFFER:
_this->gl_config.double_buffer = value;
break;
case SDL_GL_BUFFER_SIZE:
_this->gl_config.buffer_size = value;
break;
case SDL_GL_DEPTH_SIZE:
_this->gl_config.depth_size = value;
break;
case SDL_GL_STENCIL_SIZE:
_this->gl_config.stencil_size = value;
break;
case SDL_GL_ACCUM_RED_SIZE:
_this->gl_config.accum_red_size = value;
break;
case SDL_GL_ACCUM_GREEN_SIZE:
_this->gl_config.accum_green_size = value;
break;
case SDL_GL_ACCUM_BLUE_SIZE:
_this->gl_config.accum_blue_size = value;
break;
case SDL_GL_ACCUM_ALPHA_SIZE:
_this->gl_config.accum_alpha_size = value;
break;
case SDL_GL_STEREO:
_this->gl_config.stereo = value;
break;
case SDL_GL_MULTISAMPLEBUFFERS:
_this->gl_config.multisamplebuffers = value;
break;
case SDL_GL_MULTISAMPLESAMPLES:
_this->gl_config.multisamplesamples = value;
break;
case SDL_GL_FLOATBUFFERS:
_this->gl_config.floatbuffers = value;
break;
case SDL_GL_ACCELERATED_VISUAL:
_this->gl_config.accelerated = value;
break;
case SDL_GL_RETAINED_BACKING:
_this->gl_config.retained_backing = value;
break;
case SDL_GL_CONTEXT_MAJOR_VERSION:
_this->gl_config.major_version = value;
break;
case SDL_GL_CONTEXT_MINOR_VERSION:
_this->gl_config.minor_version = value;
break;
case SDL_GL_CONTEXT_FLAGS:
if (value & ~(SDL_GL_CONTEXT_DEBUG_FLAG |
SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG |
SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG |
SDL_GL_CONTEXT_RESET_ISOLATION_FLAG)) {
retval = SDL_SetError("Unknown OpenGL context flag %d", value);
break;
}
_this->gl_config.flags = value;
break;
case SDL_GL_CONTEXT_PROFILE_MASK:
if (value != 0 &&
value != SDL_GL_CONTEXT_PROFILE_CORE &&
value != SDL_GL_CONTEXT_PROFILE_COMPATIBILITY &&
value != SDL_GL_CONTEXT_PROFILE_ES) {
retval = SDL_SetError("Unknown OpenGL context profile %d", value);
break;
}
_this->gl_config.profile_mask = value;
break;
case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
_this->gl_config.share_with_current_context = value;
break;
case SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:
_this->gl_config.framebuffer_srgb_capable = value;
break;
case SDL_GL_CONTEXT_RELEASE_BEHAVIOR:
_this->gl_config.release_behavior = value;
break;
case SDL_GL_CONTEXT_RESET_NOTIFICATION:
_this->gl_config.reset_notification = value;
break;
case SDL_GL_CONTEXT_NO_ERROR:
_this->gl_config.no_error = value;
break;
case SDL_GL_EGL_PLATFORM:
_this->gl_config.egl_platform = value;
break;
default:
retval = SDL_SetError("Unknown OpenGL attribute");
break;
}
return retval;
#else
return SDL_Unsupported();
#endif /* SDL_VIDEO_OPENGL */
}
int SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
{
#if defined(SDL_VIDEO_OPENGL) || defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
PFNGLGETERRORPROC glGetErrorFunc;
GLenum attrib = 0;
GLenum error = 0;
/*
* Some queries in Core Profile desktop OpenGL 3+ contexts require
* glGetFramebufferAttachmentParameteriv instead of glGetIntegerv. Note that
* the enums we use for the former function don't exist in OpenGL ES 2, and
* the function itself doesn't exist prior to OpenGL 3 and OpenGL ES 2.
*/
#ifdef SDL_VIDEO_OPENGL
PFNGLGETSTRINGPROC glGetStringFunc;
PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glGetFramebufferAttachmentParameterivFunc;
GLenum attachment = GL_BACK_LEFT;
GLenum attachmentattrib = 0;
#endif
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!value) {
return SDL_InvalidParamError("value");
}
/* Clear value in any case */
*value = 0;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_UninitializedVideo();
}
switch (attr) {
case SDL_GL_RED_SIZE:
#ifdef SDL_VIDEO_OPENGL
attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE;
#endif
attrib = GL_RED_BITS;
break;
case SDL_GL_BLUE_SIZE:
#ifdef SDL_VIDEO_OPENGL
attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE;
#endif
attrib = GL_BLUE_BITS;
break;
case SDL_GL_GREEN_SIZE:
#ifdef SDL_VIDEO_OPENGL
attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE;
#endif
attrib = GL_GREEN_BITS;
break;
case SDL_GL_ALPHA_SIZE:
#ifdef SDL_VIDEO_OPENGL
attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE;
#endif
attrib = GL_ALPHA_BITS;
break;
case SDL_GL_DOUBLEBUFFER:
#ifdef SDL_VIDEO_OPENGL
attrib = GL_DOUBLEBUFFER;
break;
#else
/* OpenGL ES 1.0 and above specifications have EGL_SINGLE_BUFFER */
/* parameter which switches double buffer to single buffer. OpenGL ES */
/* SDL driver must set proper value after initialization */
*value = _this->gl_config.double_buffer;
return 0;
#endif
case SDL_GL_DEPTH_SIZE:
#ifdef SDL_VIDEO_OPENGL
attachment = GL_DEPTH;
attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE;
#endif
attrib = GL_DEPTH_BITS;
break;
case SDL_GL_STENCIL_SIZE:
#ifdef SDL_VIDEO_OPENGL
attachment = GL_STENCIL;
attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE;
#endif
attrib = GL_STENCIL_BITS;
break;
#ifdef SDL_VIDEO_OPENGL
case SDL_GL_ACCUM_RED_SIZE:
attrib = GL_ACCUM_RED_BITS;
break;
case SDL_GL_ACCUM_GREEN_SIZE:
attrib = GL_ACCUM_GREEN_BITS;
break;
case SDL_GL_ACCUM_BLUE_SIZE:
attrib = GL_ACCUM_BLUE_BITS;
break;
case SDL_GL_ACCUM_ALPHA_SIZE:
attrib = GL_ACCUM_ALPHA_BITS;
break;
case SDL_GL_STEREO:
attrib = GL_STEREO;
break;
#else
case SDL_GL_ACCUM_RED_SIZE:
case SDL_GL_ACCUM_GREEN_SIZE:
case SDL_GL_ACCUM_BLUE_SIZE:
case SDL_GL_ACCUM_ALPHA_SIZE:
case SDL_GL_STEREO:
/* none of these are supported in OpenGL ES */
*value = 0;
return 0;
#endif
case SDL_GL_MULTISAMPLEBUFFERS:
attrib = GL_SAMPLE_BUFFERS;
break;
case SDL_GL_MULTISAMPLESAMPLES:
attrib = GL_SAMPLES;
break;
case SDL_GL_CONTEXT_RELEASE_BEHAVIOR:
#ifdef SDL_VIDEO_OPENGL
attrib = GL_CONTEXT_RELEASE_BEHAVIOR;
#else
attrib = GL_CONTEXT_RELEASE_BEHAVIOR_KHR;
#endif
break;
case SDL_GL_BUFFER_SIZE:
{
int rsize = 0, gsize = 0, bsize = 0, asize = 0;
/* There doesn't seem to be a single flag in OpenGL for this! */
if (SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &rsize) < 0) {
return -1;
}
if (SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &gsize) < 0) {
return -1;
}
if (SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &bsize) < 0) {
return -1;
}
if (SDL_GL_GetAttribute(SDL_GL_ALPHA_SIZE, &asize) < 0) {
return -1;
}
*value = rsize + gsize + bsize + asize;
return 0;
}
case SDL_GL_ACCELERATED_VISUAL:
{
/* FIXME: How do we get this information? */
*value = (_this->gl_config.accelerated != 0);
return 0;
}
case SDL_GL_RETAINED_BACKING:
{
*value = _this->gl_config.retained_backing;
return 0;
}
case SDL_GL_CONTEXT_MAJOR_VERSION:
{
*value = _this->gl_config.major_version;
return 0;
}
case SDL_GL_CONTEXT_MINOR_VERSION:
{
*value = _this->gl_config.minor_version;
return 0;
}
case SDL_GL_CONTEXT_FLAGS:
{
*value = _this->gl_config.flags;
return 0;
}
case SDL_GL_CONTEXT_PROFILE_MASK:
{
*value = _this->gl_config.profile_mask;
return 0;
}
case SDL_GL_SHARE_WITH_CURRENT_CONTEXT:
{
*value = _this->gl_config.share_with_current_context;
return 0;
}
case SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:
{
*value = _this->gl_config.framebuffer_srgb_capable;
return 0;
}
case SDL_GL_CONTEXT_NO_ERROR:
{
*value = _this->gl_config.no_error;
return 0;
}
case SDL_GL_EGL_PLATFORM:
{
*value = _this->gl_config.egl_platform;
return 0;
}
default:
return SDL_SetError("Unknown OpenGL attribute");
}
#ifdef SDL_VIDEO_OPENGL
glGetStringFunc = (PFNGLGETSTRINGPROC)SDL_GL_GetProcAddress("glGetString");
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!glGetStringFunc) {
return -1;
}
if (attachmentattrib && isAtLeastGL3((const char *)glGetStringFunc(GL_VERSION))) {
/* glGetFramebufferAttachmentParameteriv needs to operate on the window framebuffer for this, so bind FBO 0 if necessary. */
GLint current_fbo = 0;
PFNGLGETINTEGERVPROC glGetIntegervFunc = (PFNGLGETINTEGERVPROC) SDL_GL_GetProcAddress("glGetIntegerv");
PFNGLBINDFRAMEBUFFERPROC glBindFramebufferFunc = (PFNGLBINDFRAMEBUFFERPROC)SDL_GL_GetProcAddress("glBindFramebuffer");
if (glGetIntegervFunc && glBindFramebufferFunc) {
glGetIntegervFunc(GL_DRAW_FRAMEBUFFER_BINDING, &current_fbo);
}
glGetFramebufferAttachmentParameterivFunc = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)SDL_GL_GetProcAddress("glGetFramebufferAttachmentParameteriv");
if (glGetFramebufferAttachmentParameterivFunc) {
if (glBindFramebufferFunc && (current_fbo != 0)) {
glBindFramebufferFunc(GL_DRAW_FRAMEBUFFER, 0);
}
glGetFramebufferAttachmentParameterivFunc(GL_FRAMEBUFFER, attachment, attachmentattrib, (GLint *)value);
if (glBindFramebufferFunc && (current_fbo != 0)) {
glBindFramebufferFunc(GL_DRAW_FRAMEBUFFER, current_fbo);
}
} else {
return -1;
}
} else
#endif
{
PFNGLGETINTEGERVPROC glGetIntegervFunc = (PFNGLGETINTEGERVPROC)SDL_GL_GetProcAddress("glGetIntegerv");
if (glGetIntegervFunc) {
glGetIntegervFunc(attrib, (GLint *)value);
} else {
return -1;
}
}
glGetErrorFunc = (PFNGLGETERRORPROC)SDL_GL_GetProcAddress("glGetError");
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!glGetErrorFunc) {
return -1;
}
error = glGetErrorFunc();
if (error != GL_NO_ERROR) {
if (error == GL_INVALID_ENUM) {
return SDL_SetError("OpenGL error: GL_INVALID_ENUM");
} else if (error == GL_INVALID_VALUE) {
return SDL_SetError("OpenGL error: GL_INVALID_VALUE");
}
return SDL_SetError("OpenGL error: %08X", error);
}
return 0;
#else
return SDL_Unsupported();
#endif /* SDL_VIDEO_OPENGL */
}
#define NOT_AN_OPENGL_WINDOW "The specified window isn't an OpenGL window"
SDL_GLContext SDL_GL_CreateContext(SDL_Window *window)
{
SDL_GLContext ctx = NULL;
CHECK_WINDOW_MAGIC(window, NULL);
if (!(window->flags & SDL_WINDOW_OPENGL)) {
SDL_SetError(NOT_AN_OPENGL_WINDOW);
return NULL;
}
ctx = _this->GL_CreateContext(_this, window);
/* Creating a context is assumed to make it current in the SDL driver. */
if (ctx) {
_this->current_glwin = window;
_this->current_glctx = ctx;
SDL_SetTLS(_this->current_glwin_tls, window, NULL);
SDL_SetTLS(_this->current_glctx_tls, ctx, NULL);
}
return ctx;
}
int SDL_GL_MakeCurrent(SDL_Window *window, SDL_GLContext context)
{
int retval;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_UninitializedVideo();
}
if (window == SDL_GL_GetCurrentWindow() &&
context == SDL_GL_GetCurrentContext()) {
/* We're already current. */
return 0;
}
if (!context) {
window = NULL;
} else if (window) {
CHECK_WINDOW_MAGIC(window, -1);
if (!(window->flags & SDL_WINDOW_OPENGL)) {
return SDL_SetError(NOT_AN_OPENGL_WINDOW);
}
} else if (!_this->gl_allow_no_surface) {
return SDL_SetError("Use of OpenGL without a window is not supported on this platform");
}
retval = _this->GL_MakeCurrent(_this, window, context);
if (retval == 0) {
_this->current_glwin = window;
_this->current_glctx = context;
SDL_SetTLS(_this->current_glwin_tls, window, NULL);
SDL_SetTLS(_this->current_glctx_tls, context, NULL);
}
return retval;
}
SDL_Window *SDL_GL_GetCurrentWindow(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
return (SDL_Window *)SDL_GetTLS(_this->current_glwin_tls);
}
SDL_GLContext SDL_GL_GetCurrentContext(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
return (SDL_GLContext)SDL_GetTLS(_this->current_glctx_tls);
}
SDL_EGLDisplay SDL_EGL_GetCurrentEGLDisplay(void)
{
#ifdef SDL_VIDEO_OPENGL_EGL
if (!_this) {
SDL_UninitializedVideo();
return EGL_NO_DISPLAY;
}
if (!_this->egl_data) {
SDL_SetError("There is no current EGL display");
return EGL_NO_DISPLAY;
}
return _this->egl_data->egl_display;
#else
SDL_SetError("SDL was not built with EGL support");
return NULL;
#endif
}
SDL_EGLConfig SDL_EGL_GetCurrentEGLConfig(void)
{
#ifdef SDL_VIDEO_OPENGL_EGL
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
if (!_this->egl_data) {
SDL_SetError("There is no current EGL display");
return NULL;
}
return _this->egl_data->egl_config;
#else
SDL_SetError("SDL was not built with EGL support");
return NULL;
#endif
}
SDL_EGLConfig SDL_EGL_GetWindowEGLSurface(SDL_Window *window)
{
#ifdef SDL_VIDEO_OPENGL_EGL
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
if (!_this->egl_data) {
SDL_SetError("There is no current EGL display");
return NULL;
}
if (_this->GL_GetEGLSurface) {
return _this->GL_GetEGLSurface(_this, window);
}
return NULL;
#else
SDL_SetError("SDL was not built with EGL support");
return NULL;
#endif
}
int SDL_GL_SetSwapInterval(int interval)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_UninitializedVideo();
} else if (SDL_GL_GetCurrentContext() == NULL) {
return SDL_SetError("No OpenGL context has been made current");
} else if (_this->GL_SetSwapInterval) {
return _this->GL_SetSwapInterval(_this, interval);
} else {
return SDL_SetError("Setting the swap interval is not supported");
}
}
int SDL_GL_GetSwapInterval(int *interval)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!interval) {
return SDL_InvalidParamError("interval");
}
*interval = 0;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_SetError("no video driver");;
} else if (SDL_GL_GetCurrentContext() == NULL) {
return SDL_SetError("no current context");;
} else if (_this->GL_GetSwapInterval) {
return _this->GL_GetSwapInterval(_this, interval);
} else {
return SDL_SetError("not implemented");;
}
}
int SDL_GL_SwapWindow(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, -1);
if (!(window->flags & SDL_WINDOW_OPENGL)) {
return SDL_SetError(NOT_AN_OPENGL_WINDOW);
}
if (SDL_GL_GetCurrentWindow() != window) {
return SDL_SetError("The specified window has not been made current");
}
return _this->GL_SwapWindow(_this, window);
}
int SDL_GL_DeleteContext(SDL_GLContext context)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
return SDL_UninitializedVideo(); \
}
if (!context) {
return SDL_InvalidParamError("context");
}
if (SDL_GL_GetCurrentContext() == context) {
SDL_GL_MakeCurrent(NULL, NULL);
}
return _this->GL_DeleteContext(_this, context);
}
#if 0 /* FIXME */
/*
* Utility function used by SDL_WM_SetIcon(); flags & 1 for color key, flags
* & 2 for alpha channel.
*/
static void CreateMaskFromColorKeyOrAlpha(SDL_Surface *icon, Uint8 *mask, int flags)
{
int x, y;
Uint32 colorkey;
#define SET_MASKBIT(icon, x, y, mask) \
mask[(y * ((icon->w + 7) / 8)) + (x / 8)] &= ~(0x01 << (7 - (x % 8)))
colorkey = icon->format->colorkey;
switch (icon->format->BytesPerPixel) {
case 1:
{
Uint8 *pixels;
for (y = 0; y < icon->h; ++y) {
pixels = (Uint8 *) icon->pixels + y * icon->pitch;
for (x = 0; x < icon->w; ++x) {
if (*pixels++ == colorkey) {
SET_MASKBIT(icon, x, y, mask);
}
}
}
}
break;
case 2:
{
Uint16 *pixels;
for (y = 0; y < icon->h; ++y) {
pixels = (Uint16 *) icon->pixels + y * icon->pitch / 2;
for (x = 0; x < icon->w; ++x) {
if ((flags & 1) && *pixels == colorkey) {
SET_MASKBIT(icon, x, y, mask);
} else if ((flags & 2)
&& (*pixels & icon->format->Amask) == 0) {
SET_MASKBIT(icon, x, y, mask);
}
pixels++;
}
}
}
break;
case 4:
{
Uint32 *pixels;
for (y = 0; y < icon->h; ++y) {
pixels = (Uint32 *) icon->pixels + y * icon->pitch / 4;
for (x = 0; x < icon->w; ++x) {
if ((flags & 1) && *pixels == colorkey) {
SET_MASKBIT(icon, x, y, mask);
} else if ((flags & 2)
&& (*pixels & icon->format->Amask) == 0) {
SET_MASKBIT(icon, x, y, mask);
}
pixels++;
}
}
}
break;
}
}
/*
* Sets the window manager icon for the display window.
*/
void SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask)
{
if (icon && _this->SetIcon) {
/* Generate a mask if necessary, and create the icon! */
if (mask == NULL) {
int mask_len = icon->h * (icon->w + 7) / 8;
int flags = 0;
mask = (Uint8 *) SDL_malloc(mask_len);
if (mask == NULL) {
return;
}
SDL_memset(mask, ~0, mask_len);
if (icon->flags & SDL_SRCCOLORKEY)
flags |= 1;
if (icon->flags & SDL_SRCALPHA)
flags |= 2;
if (flags) {
CreateMaskFromColorKeyOrAlpha(icon, mask, flags);
}
_this->SetIcon(_this, icon, mask);
SDL_free(mask);
} else {
_this->SetIcon(_this, icon, mask);
}
}
}
#endif
void SDL_StartTextInput(void)
{
SDL_Window *window;
/* First, enable text events */
SDL_SetEventEnabled(SDL_EVENT_TEXT_INPUT, SDL_TRUE);
SDL_SetEventEnabled(SDL_EVENT_TEXT_EDITING, SDL_TRUE);
/* Then show the on-screen keyboard, if any */
if (SDL_GetHintBoolean(SDL_HINT_ENABLE_SCREEN_KEYBOARD, SDL_TRUE)) {
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
window = SDL_GetKeyboardFocus();
if (window && _this && _this->ShowScreenKeyboard) {
_this->ShowScreenKeyboard(_this, window);
}
}
/* Finally start the text input system */
if (_this && _this->StartTextInput) {
_this->StartTextInput(_this);
}
}
void SDL_ClearComposition(void)
{
if (_this && _this->ClearComposition) {
_this->ClearComposition(_this);
}
}
SDL_bool SDL_TextInputShown(void)
{
if (_this && _this->IsTextInputShown) {
return _this->IsTextInputShown(_this);
}
return SDL_FALSE;
}
SDL_bool SDL_TextInputActive(void)
{
return SDL_EventEnabled(SDL_EVENT_TEXT_INPUT);
}
void SDL_StopTextInput(void)
{
SDL_Window *window;
/* Stop the text input system */
if (_this && _this->StopTextInput) {
_this->StopTextInput(_this);
}
/* Hide the on-screen keyboard, if any */
if (SDL_GetHintBoolean(SDL_HINT_ENABLE_SCREEN_KEYBOARD, SDL_TRUE)) {
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
window = SDL_GetKeyboardFocus();
if (window && _this && _this->HideScreenKeyboard) {
_this->HideScreenKeyboard(_this, window);
}
}
/* Finally disable text events */
SDL_SetEventEnabled(SDL_EVENT_TEXT_INPUT, SDL_FALSE);
SDL_SetEventEnabled(SDL_EVENT_TEXT_EDITING, SDL_FALSE);
}
int SDL_SetTextInputRect(const SDL_Rect *rect)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!rect) {
return SDL_InvalidParamError("rect");
}
if (_this && _this->SetTextInputRect) {
return _this->SetTextInputRect(_this, rect);
}
return SDL_Unsupported();
}
SDL_bool SDL_HasScreenKeyboardSupport(void)
{
if (_this && _this->HasScreenKeyboardSupport) {
return _this->HasScreenKeyboardSupport(_this);
}
return SDL_FALSE;
}
SDL_bool SDL_ScreenKeyboardShown(SDL_Window *window)
{
if (window && _this && _this->IsScreenKeyboardShown) {
return _this->IsScreenKeyboardShown(_this, window);
}
return SDL_FALSE;
}
int SDL_GetMessageBoxCount(void)
{
return SDL_AtomicGet(&SDL_messagebox_count);
}
#ifdef SDL_VIDEO_DRIVER_ANDROID
#include "android/SDL_androidmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_WINDOWS
#include "windows/SDL_windowsmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_WINRT
#include "winrt/SDL_winrtmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_COCOA
#include "cocoa/SDL_cocoamessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_UIKIT
#include "uikit/SDL_uikitmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_WAYLAND
#include "wayland/SDL_waylandmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_X11
#include "x11/SDL_x11messagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_HAIKU
#include "haiku/SDL_bmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_RISCOS
#include "riscos/SDL_riscosmessagebox.h"
#endif
#ifdef SDL_VIDEO_DRIVER_VITA
#include "vita/SDL_vitamessagebox.h"
#endif
int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{
int dummybutton;
int retval = -1;
SDL_bool relative_mode;
SDL_bool show_cursor_prev;
SDL_Window *current_window;
SDL_MessageBoxData mbdata;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!messageboxdata) {
return SDL_InvalidParamError("messageboxdata");
} else if (messageboxdata->numbuttons < 0) {
return SDL_SetError("Invalid number of buttons");
}
(void)SDL_AtomicIncRef(&SDL_messagebox_count);
current_window = SDL_GetKeyboardFocus();
relative_mode = SDL_GetRelativeMouseMode();
SDL_UpdateMouseCapture(SDL_FALSE);
SDL_SetRelativeMouseMode(SDL_FALSE);
show_cursor_prev = SDL_CursorVisible();
SDL_ShowCursor();
SDL_ResetKeyboard();
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!buttonid) {
buttonid = &dummybutton;
}
SDL_memcpy(&mbdata, messageboxdata, sizeof(*messageboxdata));
if (!mbdata.title) {
mbdata.title = "";
}
if (!mbdata.message) {
mbdata.message = "";
}
messageboxdata = &mbdata;
SDL_ClearError();
if (_this && _this->ShowMessageBox) {
retval = _this->ShowMessageBox(_this, messageboxdata, buttonid);
}
/* It's completely fine to call this function before video is initialized */
#ifdef SDL_VIDEO_DRIVER_ANDROID
if (retval == -1 &&
Android_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#if defined(SDL_VIDEO_DRIVER_WINDOWS) && !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
if (retval == -1 &&
WIN_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_WINRT
if (retval == -1 &&
WINRT_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_COCOA
if (retval == -1 &&
Cocoa_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_UIKIT
if (retval == -1 &&
UIKit_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_WAYLAND
if (retval == -1 &&
Wayland_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_X11
if (retval == -1 &&
X11_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_HAIKU
if (retval == -1 &&
HAIKU_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_RISCOS
if (retval == -1 &&
RISCOS_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
#ifdef SDL_VIDEO_DRIVER_VITA
if (retval == -1 &&
VITA_ShowMessageBox(messageboxdata, buttonid) == 0) {
retval = 0;
}
#endif
if (retval == -1) {
const char *error = SDL_GetError();
if (!*error) {
SDL_SetError("No message system available");
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
} else {
SDL_ClearError();
}
(void)SDL_AtomicDecRef(&SDL_messagebox_count);
if (current_window) {
SDL_RaiseWindow(current_window);
}
if (!show_cursor_prev) {
SDL_HideCursor();
}
SDL_SetRelativeMouseMode(relative_mode);
SDL_UpdateMouseCapture(SDL_FALSE);
return retval;
}
int SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *message, SDL_Window *window)
{
#ifdef __EMSCRIPTEN__
/* !!! FIXME: propose a browser API for this, get this #ifdef out of here? */
/* Web browsers don't (currently) have an API for a custom message box
that can block, but for the most common case (SDL_ShowSimpleMessageBox),
we can use the standard Javascript alert() function. */
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!title) {
title = "";
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!message) {
message = "";
}
EM_ASM({
alert(UTF8ToString($0) + "\n\n" + UTF8ToString($1));
},
title, message);
return 0;
#else
SDL_MessageBoxData data;
SDL_MessageBoxButtonData button;
SDL_zero(data);
data.flags = flags;
data.title = title;
data.message = message;
data.numbuttons = 1;
data.buttons = &button;
data.window = window;
SDL_zero(button);
button.flags |= SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT;
button.flags |= SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT;
button.text = "OK";
return SDL_ShowMessageBox(&data, NULL);
#endif
}
SDL_bool SDL_ShouldAllowTopmost(void)
{
return SDL_GetHintBoolean(SDL_HINT_ALLOW_TOPMOST, SDL_TRUE);
}
Squashed 'external/sdl/SDL/' changes from b8d91252c6..ec0042081e ec0042081e Add .gitattributes file a5d9db0cd0 cmake: build tests for UWP b7889a7389 winrt: use windowsio in non-libc mode ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten 1a7a74fb2e cmake: build emscripten tests as html page 64d570f027 Add minimal http server for emscripten test apps 8e898c4a21 SDL_test does not parse --samples argument 91cd5478be audio: Fix resampler overflowing input buffer. f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. 80850af7ce The controller update complete events are no longer disabled by default 3f486224a9 Fixed refresh rate calculation for KMSDRM 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) 9129e1d557 Fixed crash when setting the default cursor twice 8e99a4f4f5 Undo variable rename be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM 94b3f78c44 Fix out of bound read of 'has_hat' array 94f48f19b0 Use more specific build destinations when creating an xcframework dabd45997e Back out change supporting multiple names for binding elements efe15588d5 Relabel back paddles as left or right be884f0c95 ci: disable visionos.yml by renaming the file ac094d00f5 ci: add workflow_dispatch event to visionos workflow 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py a9f6950657 Fixed deadlock shutting down Android sensors d9f09e77f2 Actually make the sensors magical! 690eae7d22 Implement visionOS support e385d6da0a Fixed build warning 6b93e788fa Improved sensor thread-safety 4ee0e5a984 Fixed thread-safety warnings 12deed91f8 Added information on how to enable thread-safety analysis 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. 917e036f6f MSVC has __declspec(deprecated) 279ff8909f Changed example code to avoid potential divide by zero 8a1afc9b10 Fixed Android not sending controller event timestamps 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use a2d594269c Fixed pixel format compatibility with SDL2 79a190aa23 Fixed setting invalid bpp for FOURCC formats in SDL_GetMasksForPixelFormatEnum() 8fdebdd3e0 Sync SDL3 wiki -> header b903ccf945 SDL_rwops read/write functions return size_t again c03f5b4b69 Fixed rounding up in SDL_PrintFloat 75a020aa6b Only query serial number and firmware versions from Sony PS5 controllers fa189d302e Added the Victrix Pro FS for PS4/PS5 to the controller list 26205b659d Fixed PS4/PS5 touchpad for third party controllers 6af0448af9 include: fixed a typo in SDL_RenderGetMetalCommandEncoder docs. f3cb46b083 SDL_thread.h: do not conflict with sdl2-compat::sdl3_include_wrapper.h 080b1dfbdb Revert "Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!)" 9d453daa23 Improved fallback for SDL_COMPILE_TIME_ASSERT() (thanks @icculus!) 1fb2419882 Removed reference to renamed function e7d56dd0b2 audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice. 2b0c0f5b6b Don't pass NULL to strncmp 778e8185cd Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked And add diagnostic that allows to find this kind of issue in clang-tidy 4bb426abad Sync SDL3 wiki -> header 3a752ce650 Reapply "Changed 'freesrc' parameter from int to SDL_bool" to SDL_wave.c 2ba03b4db0 fix build after previous commit. 0026adffd4 apply force_align_arg_pointer attribute to correct version of SDL_RunApp 77446e2029 Unaligned stacks on i686-w64-mingw32 may lead to crashes d3bcc3f057 Fixed build errors when OpenGL isn't enabled 35ad68e126 Sync SDL3 wiki -> header 70323a8350 Add a function to display the system menu for a window be5f66c84e testaudio: Fixed soundboard icon, which had a colorkey issue. c0a88930bf Sync SDL3 wiki -> header 18c59cc969 Merge the SDL3 audio subsystem redesign! 99b0e31788 The Steam Controller D-Pad is only pressed when the button is pressed down 103073d694 Set NSBluetoothAlwaysUsageDescription for testcontroller ca02bb6c8c We don't need testdropfile-Info.plist e063f662e9 Enable the controller update complete events 06bea1eb55 Added a gamepad mapping for the G-Shark GS-GP702 5ca3c50bf0 testaudio: Fix compiler warning. 1b1f02c5aa testaudio: Apparently compilers don't like this possibly being NULL now...? 2de9253b6c test: Added testaudio fb3ab3f113 SDL_video.c: move ngage video before offscreen. 843572d993 Don't mark autorelease keys as virtual 648de4f9b8 Fixed duplicate key press/release events on iOS a8abe612ed Only pass keypresses up the responder chain when text input is active c3288d113e Synchronize on-screen keyboard state with text input active state 5fb92ef2f7 Fixed whitespace f5ea6ae18d Revert "Stop beep when running iOS apps on ARM-based Macs" 546508b9b4 Allow test programs to run at full resolution on iPads 68a4bb01e0 Allocate displays as an array of pointers instead of an array of objects 07578fde3d Fixed crash if a display is enumerated twice a509771a87 fix ios CI workflow after commit e4460e897f 72ce76905a The scheme isn't always the same as the framework name (e.g. xmp_lite vs xmp-lite) e4460e897f By default Xcode expects the framework target name to be the name of the project. ac683773dc Added missing tests to the "All" target 7dd56eaafe Removed unnecessary reference to testoverlay-Info.plist e1c7f524ef Reduce the number of times SDL3 is duplicated in the xcframework script 65538011ca Make Xcode targets more specific efe114c300 Revert "Renamed the xcframework target from "SDL.xcframework" to "xcframework"" 73ed1d21a9 Renamed the xcframework target from "SDL.xcframework" to "xcframework" 76b4d8a0d8 Build the Framework instead of a static library for iOS and tvOS d1bf979160 Removed unnecessary setting from the "Create DMG" target c94cb3a5d8 Simplified the Xcode project to a single Framework target ea60474c65 cmake: don't build SDL3-static Apple framework 8f00d7856d Sync SDL3 wiki -> header d4a867a256 Rename SDL_GetPath to SDL_GetUserFolder 71099149b8 Fall back to Xlib if XRandR isn't available b7f32f74ce Note the removal of the SDL_RENDERER_TARGETTEXTURE flag 0eda582160 testaudiostreamdynamicresample: Load sample.wav correctly. 87eae9a0a1 aaudio: We need a mixbuf on capture devices, too. fb68e84646 wayland: Fix memory leaks b0edd23c00 testsurround: Log available audio output devices at the start. ae3090c387 androidaudio: Move Init/bootstrap code to bottom of source code. 18fc0db9e5 aaudio: Rearranged source code to match other backends. 2507c1d68b aaudio: Disconnect playing devices if error callback fires. 32a3fc3783 aaudio: Use the callback interface. b49ce86765 audio: Fixed compiler warning on Android NDK. 1c074e8d97 android: Fixed audio device detection. 82ce05ad01 pulseaudio: Be more aggressive with hotplug thread synchronization. 5cbdf1168e androidaudio: Fixed incorrect JNI call (thanks, @madebr!) 660054f3dc include: Correct comment about audio device hotplug events. ab68428a64 aaudio: Fixed for older SDKs and Android releases. 5ff87c6d4a android: Reworked audio backends for SDL3 audio API. 54af687210 testautomation_audio.c: Patched to compile. :/ 5e82090662 testautomation_audio.c: Apparently we aren't updating test code for C99 atm. 7f4488f625 wasapi: More fixes for Clang warnings. 29a0c689c9 wasapi: Patched to compile with Clang. 4aa95c21bc pspaudio: Patched to compile. 9a2a0a1463 ps2audio: Delete errant character that got inserted before previous commit. 2c578bd0d5 qnxaudio: Rewrite for SDL3 audio APIs. 455eef4cd9 audio: Use AtomicAdd for device counts, don't treat as a refcount. 095ea57f94 pspaudio: Patched to compile. d7cf63db67 ps2audio: Patched to compile. 027b9e8787 coreaudio: (maybe) patched to compile on iOS. 4836c2db07 pspaudio: Patched to compile. 86ca412436 n3dsaudio: Patched to compile. 66bcee2ca9 testaudiostreamdynamicresample.c: Fixed MSVC compiler warning. dbf993d358 vitaaudio: patched to compile. 5707e14716 audio: Fix up some things that broke when rebasing the branch against main. 6567285eae SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio. 0b6255551e test: Fixed incorrect SDL_OpenAudioDevice call in testautomation. 107fd941cd vitaaudio: Clean up correctly in CloseDevice. 9fa4a6ef87 netbsdaudio: Minor fix. b0d89868c6 n3dsaudio: Updated (but untested!) for SDL3 audio API. ba27176106 vitaaudio: Untested attempt to move Vita audio to SDL3's audio API. 0b58e96d9e wasapi: Patched WinRT to compile. d6b4f48488 visualc: Turn on multiprocessor compilation. c58d95c343 wasapi: Reworked for new SDL3 audio API, other win32 fixes. dc04f85646 audio: whoops, that should be an int. be0dc630b7 audio: Fixed incorrect assertion 77b3fb06ee directsound: First shot at updating for SDL3 audio API. 4399b71715 audio: Generalize how backends can lookup an SDL_AudioDevice. 2fb122fe46 audio: backends now "find" instead of "obtain" devices by handle. c3f5a5fc72 dummyaudio: SDL3ify style 7d65ff86e2 diskaudio: Adjusted for later SDL3 audio API redesign changes. 4ba9c2eade dummyaudio: Configurable delay, other SDL3 API fixes. fb395d3ad7 sndio: Updated to the SDL3 audio API. 1a55282051 dsp: Some minor logic fixes 6bc85577d7 netbsdaudio: Updated for SDL3 audio API. 0f6e59312b netbsdaudio: Removed email address from source code. 51ae78c0af haikuaudio: Updated for SDL3 audio API. fc7ed18ca1 emscriptenaudio: don't forget to finalize the audio thread 4233c41ce2 pulseaudio: Removed unnecessary variable. a0528cd5ed emscriptenaudio: Updated for SDL3 audio API. 79cc29ba35 wave: Don't check if format->channels > INT_MAX, it's a Uint16. 1bfe97c235 pspaudio: Updated for SDL3 audio API. 121a2dce15 audio: Make sure `device->hidden` is NULL after CloseDevice 3d6ba0cafd ps2audio: Removed free of buffer that hasn't been allocated yet. 00ed6f8827 test: Fixed compiler warnings for unused vars. 6f12f68ec9 ps2audio: SDL3ified the style 4993743a02 ps2audio: Renamed `_this` to `device` 74568cdb2b ps2audio: Updated (but untested) for SDL3 audio API. c83b68ef26 jack: renamed `_this` to `device`. 3f4f004794 audio: Remove an assertion that no longer makes sense. 86243b2589 jack: Use ProvidesOwnCallbackThread. 18906a32b8 jack: First shot at updating for SDL3 audio API. a2b488359e dsp: Removed debug logging 6fd71185cd dsp: Updated for new SDL3 audio API. 3482d1215a alsa: Don't ever block in CaptureFromDevice. 65d296ef1a audio: Use SDL_powerof2 instead of reinventing it. 409b544505 alsa: Updated for new SDL3 audio API 0999a090a7 audio: More tweaking of `device->thread_alive` f94ffd6092 audio: Fixed logic error 4deb2970c9 alsa: Renamed `_this` to `device` 0fb9e4baae audio: Remove no-longer-used SupportsNonPow2Samples c653e57768 coreaudio: rewritten for SDL3 audio redesign! 533777eff5 audio: SDL_sysaudio.h comment conversion. 8473e522e0 audio: unify device thread naming. 258bc9efed audio: PlayDevice now passes the buffer, too, for convenience. e518149d14 audio: Fixed locking in SDL_AudioDeviceDisconnected 22afa5735f audio: FreeDeviceHandle should pass the whole device, for convenience. 9e3c5f93e0 coreaudio: Change `_this` to `device` e969160de0 audio: unset a freed variable to NULL 1fc01b0300 audio: Try to definitely have a default device set up. b60a56d368 audio: take first reported device if no default was specified. a8323ebe68 audio: Better handling of ProvidesOwnCallbackThread backends. 1dffb72c1d pipewire: Hooked up default device change notifications. a93fcf2444 audio: fixed flushed stream reporting bytes but not being able to get them. ad6c1781fc pulseaudio: Minor cleanups. cfc8a0d17d pipewire: First shot at moving to the new SDL3 audio interfaces. 13202642a3 aaudio: Fixed capitialization, plus some minor cleanups. 3e9991b535 audio: Make sure we don't write to a NULL pointer. 943351affb pulseaudio: GetDefaultAudioInfo isn't a thing anymore. 11dfc4d737 test: Update testautomation_audio for SDL3 audio API. 29afc2e42b test: Update testresample for SDL3 audio API. 3a02eecced test: Update testsurround for SDL3 audio API. e1c78718d4 test: testaudiocapture is updated for the SDL3 audio API. f48cb716c2 pulseaudio: a couple minor tweaks. dac25fe9eb audio: Seperate audio capture into Wait/Read operations. 3e10c0005d audio: Capture devices should respect logical device pausing. 7e700531c5 audio: Allow SDL_OpenAudioDevice to accept a NULL spec. bb1cbbd33a test: Update testaudioinfo for SDL3 audio API. 883aee32c5 audio: Let default formats differ for output and capture devices. 62cf24eeb9 pulseaudio: Listen for server events in addition to sources and sinks. 924f370bd7 pulseaudio: Fix deadlock in HotplugThread. 5d4e9e5f80 test: Updated testaudiostreamdynamicresample to SDL3 audio API. f883b9fc64 test: Updated testaudiohotplug to SDL3 audio API. 2be5f726d4 audio: Removed debug logging. 323ecce123 docs: Added migration note about SDL_AUDIODEVICEREMOVED. 47b0321ebf test: Removed loopwavequeue.c; obsolete in SDL3. 0e5a1d4f29 pulseaudio: Removed debug logging. f598626e46 test: loopwave shouldn't use an audiostream callback. eee407caf8 docs: migration guide note that SDL_LoadWAV has a different return type. b03c493fc4 test: Updated testmultiaudio to new SDL3 audio API fe1daf6fb5 audio: Mark disconnected default devices as "zombies". cdd2ba81de audio: Fixed adding new physical devices to a double-linked list. db39cbf208 audio: Allow SDL_GetAudioDeviceFormat() to query the default devices. ee10bab3cd audio: An enormous amount of work on managing default devices. c7a44eea83 audio: Fixed logic error. 089cd87cb5 audio: Make sure device count stays correct as hardware disconnects. e50cb72eb6 docs: Note that audio opening doesn't implicitly init SDL now. 97b2f747d0 docs: Corrections to audio section of README-migration.md 464640440f audio: Added SDL_GetAudioStreamBinding. 01f7b53865 audio: Readded (logical) device pausing. fd4c9f4e11 audio: documentation improvements. 4b78b789a7 audio: Switch SDL_audio.c and SDL_audiocvt.c to C99-ish syntax. d96a1db7d7 audio: Opening via a logical device ID should also track default device. b2e020958f audio: Wrap device access in opening of logical devices. 7ee2459927 audio: Check for unlikely failure case in WAV loaded. 3d65a2cefe audio: Made SDL_LoadWAV a real function, not just a macro. 26525f5fd3 audio: Readd SDL_AudioSpec, but just with format/channels/freq fields. e6aaed7d79 include: Audio is not, and has not been, a raw mixing buffer for a long time. 56b1bc2198 audio: SDL_AudioStream now has callbacks for Get and Put operations. 905c4fff5b audio: First shot at the SDL3 audio subsystem redesign! b221b59995 cmake: add SDL_REVISION option 0500fca00c Add missing break d3f2de7f29 fixed typo in prev. patch. 12b35c6a46 test/testnativecocoa.m: fixed deprecation warnings. e24b3e2fa4 cmake: rename SDL_TEST -> SDL_TEST_LIBRARY da5016d336 cmake: use pkg-config + test compile instead of Find module for detecting rpi deec574ff6 cmake: fix SDL_HIDAPI_LIBUSB f2ae00c1ad Sync SDL3 wiki -> header 41a96c8133 doc: document building of SDL tests with CMake 3174d0b970 Sorted controller list 27b8abb056 Add Steam Deck controller mapping to database. 41d436f0fe Use SetWindowPos to show windows when SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN is set to avoid activating the parent window when showing a child window 0dc85f3078 Improved the documentation for the gamepad paddle buttons 2fff999a41 Try to create the dummy mouse cursor after video backend initialization d086d9874d Sync SDL3 wiki -> header bce598addd SDL_pixels.c: Fixed compiler warning on Android NDK. ad0c0d3cde Sync SDL3 wiki -> header f8e8dff7ee tests: Fix automated window grab and positioning tests under Wayland/XWayland 4cffbc3644 Add VS code directory to gitignore 666f81bace Add more endian-specific aliases for 32 bit pixelformats 4749df0a63 Just disable the 4214 warning instead of trying to change the structure definition git-subtree-dir: external/sdl/SDL git-subtree-split: ec0042081ea104d5dd0ee291105210e00a4fe3d9
2023-08-12 20:17:29 +02:00
int SDL_ShowWindowSystemMenu(SDL_Window *window, int x, int y)
{
CHECK_WINDOW_MAGIC(window, -1)
CHECK_WINDOW_NOT_POPUP(window, -1)
if (_this->ShowWindowSystemMenu) {
_this->ShowWindowSystemMenu(window, x, y);
return 0;
}
return SDL_Unsupported();
}
int SDL_SetWindowHitTest(SDL_Window *window, SDL_HitTest callback, void *callback_data)
{
CHECK_WINDOW_MAGIC(window, -1);
if (!_this->SetWindowHitTest) {
return SDL_Unsupported();
} else if (_this->SetWindowHitTest(window, callback != NULL) == -1) {
return -1;
}
window->hit_test = callback;
window->hit_test_data = callback_data;
return 0;
}
/*
* Functions used by iOS application delegates
*/
void SDL_OnApplicationWillTerminate(void)
{
SDL_SendAppEvent(SDL_EVENT_TERMINATING);
}
void SDL_OnApplicationDidReceiveMemoryWarning(void)
{
SDL_SendAppEvent(SDL_EVENT_LOW_MEMORY);
}
void SDL_OnApplicationWillResignActive(void)
{
if (_this) {
SDL_Window *window;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
for (window = _this->windows; window; window = window->next) {
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_MINIMIZED, 0, 0);
}
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
SDL_SetKeyboardFocus(NULL);
}
SDL_SendAppEvent(SDL_EVENT_WILL_ENTER_BACKGROUND);
}
void SDL_OnApplicationDidEnterBackground(void)
{
SDL_SendAppEvent(SDL_EVENT_DID_ENTER_BACKGROUND);
}
void SDL_OnApplicationWillEnterForeground(void)
{
SDL_SendAppEvent(SDL_EVENT_WILL_ENTER_FOREGROUND);
}
void SDL_OnApplicationDidBecomeActive(void)
{
SDL_SendAppEvent(SDL_EVENT_DID_ENTER_FOREGROUND);
if (_this) {
SDL_Window *window;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
for (window = _this->windows; window; window = window->next) {
Squashed 'external/sdl/SDL/' changes from ec0042081..399bc709b 399bc709b build-scripts.pl: Added add-source-to-projects.pl ac6827187 Visual-WinRT: dos2unix the project files to match other Visual Studio targets. 34719cba9 Fixed crash in hid_init() if the HIDDeviceManager isn't available 2e92e94eb Make sure we update device->sample_frames in SDL_AudioDeviceFormatChangedAlreadyLocked() 9964e5c5b wayland: Don't retrieve the drag offer strings with every pointer motion event bac7eeaaa Added missing include a541e2ac1 audio: Change a few SDL_memcpy calls to SDL_copyp. 54125c140 audio: Only update bound audiostreams' formats when necessary. e0b0f9a36 testaudio: Fix mouseover testing. 2f3deec24 wayland: Don't process drag & drop events from surfaces not owned by SDL 42bdced05 events: Log file drop position events and print the pointer coordinates c10d93d3a wayland: Replace magic constant with define 500852153 emscripten: Restore compatibility with existing emsdk releases. 953b55dd6 Use EM_ASM_PTR when the return value is a pointer a4541a255 audio: SDL_GetAudioStreamQueued now returns bytes, not frames. 703aefbce Sync SDL3 wiki -> header 99421b64d linux: Add portal drag and drop 952c5059b Remove stray  eebd5d18a linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE f8fdb20d8 audio: Destroy all existing SDL_AudioStreams on shutdown. 62d445997 audio: Removed declarations of functions that don't exist anymore. b656720bc loopwave: Use SDL_GetAudioStreamQueued() for more accurate results. 34b931f7e audio: Added SDL_GetAudioStreamQueued 23206b9e3 audio: Added SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED c7e6d7a1f audio: Changed debug logging output. 87ec6acf2 audio: Added a FIXME ac88ffb7e audio: don't allocate buffer in SDL_SetAudioPostmixCallback for NULL callback. 2a950f6ae audio: Replace some SDL_memcpy calls with SDL_copyp. 0dc0434a3 audio: Fixed race condition in subsystem shutdown. 23f60203a audio: precalculate if we can use simple copies instead of the full mixer. 36b0f1141 audio: Optimize setting device formats during audio thread iteration. 4c3e84897 testspriteminimal: make standalone by embedding icon.bmp 2a01f9dcb tests: plug leaks when running with --trackmem f42bbeca2 SDL_test: track stack frames of allocations on Windows 12c0be028 SDL_test: clear text cache on exit event b4bfb1831 SDL_test: free state before logging allocations 248b1edd3 SDL_test: destroy windows in SDL_CommonQuit 98da2dd30 SDL_test: don't warn about expected allocations when running with --trackmem 6a381567b Support audio rate conversion up to 384KHz b2b548a1f Don't hang if IAudioRenderClient_GetBuffer() fails indefinitely a3a5e1728 Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data 6d3e21c27 Fixed android build warnings fca2f5318 Fixed warning: this function declaration is not a prototype a72dfa6a5 Fixed sensor timestamp units for third-party PS5 controllers f6756047a Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’ 7059a55cc Fixed sensor timestamp calculation for third-party PS5 controllers c0443e5d1 Fixed crash in SDL_IMMDevice_FindByDevID() fde8499f6 Use around 20ms for the audio buffer size e5739d7d1 video: Remove SDL_GetFocusWindow() 39c2f9737 Fix NULL dereference in SDL_OpenAudio 9a23d0e3f Added new audio files to the Xcode project a62e62f97 Refactored SDL_audiocvt.c 31229fd47 include: Added a note about SDL's iOS app delegate functions. 65aaf3a9a x11: Always update clipboard owner f622f21e6 Fixed build 5774c9638 Prefer hidraw over libusb when libusb whitelisting is not enabled 9301f7ace hidapi/libusb: only enumerate each interface once 859dc14ad Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings() 9e50048ab Revert "Removed SDL_GamepadBinding from the API" 9f17d1a9d Don't reference the same function in "see also" 86505ea63 fix SDL_AudioStreamCallback documentation d885d5c31 Sync SDL3 wiki -> header 2f43f7bc5 audio: Allow querying of device buffer size. cf9572113 audio: Added a hint to let apps force device buffer size. 47d8c77c6 audio: Choose better default sample frame counts. 8b26e95f9 audio: Change SDL_AudioStreamCallback 9da34e8fb docs: Updated README-emscripten.md. fd1c54a00 detect fanatec steering wheels cb4414608 docs: Whoops, this got added by the wiki bridge by accident! cd633b9a8 Renamed SDL_IsAudioDevicePaused() to SDL_AudioDevicePaused() c6cad07fa Sync SDL3 wiki -> header a6e52f9e4 Sync SDL3 wiki -> header 2de2e9d03 Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186. 723835d16 Windows: fix for client rect resizing larger each time we came from exclusive fullscreen -> windowed on a monitor with HiDPI set. The problem was we were using the monitor DPI rather than the window DPI so AdjustWindowRectExForDpi was giving us an incorrect size which would be too large for the client rect. Closes #8237. ce27363df wikiheaders: Sort undocumented functions. e22282b09 Added README about transparent windows in Win32 1d1c6e630 Turn off COREAUDIO debug logging by default 52efefca0 wayland: Fix drag offer leak 3a992af44 audio: Added a postmix callback to logical devices. 7207bdce5 render: Enable clipping for zero-sized rectangles 22d81fb3e cmake: use MSVC_RUNTIME_LIBRARY to force MT a2e17852d cmake: make sure SDL_GetPrefPath is run before testfilesystem 2fb266e0a ci: run tests in parallel ad1313e75 testaudio: Patched to compile. 5747ddc01 testaudio: Clean up some messy memory management. fafbea1ce audio: Move internal float32 mixing to a simplified function 116b0ec97 include: minor tweak to audio API documentation fb1377035 include: Replaced old Bugzilla URL. 38c8fc05c audio: Remove ChooseMixStrategy. b00cbd76a wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki 37e1fc3b5 wayland: Ensure that the toplevel window is recreated when switching decoration modes f2ca9a615 Added SDL_AUDIO_FRAMESIZE 53122593f Added SDL_AUDIO_BYTESIZE 544351c98 Sync SDL3 wiki -> header 2e7d2b94e Clarify that SDL_BlitSurface() ignores the width and height in dstrect a2c1984d3 Detect Simagic wheel bases as wheels (#8198) 1d8dfbb22 avoid type redefinition errors after PR/8181 266b91d2f Detect Logitech G923 Playstation as wheel G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version. cde67ea49 Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version 3a932141e Restore audio format binary compatibility with SDL 2.0 e85206ffd wikiheaders.pl: add --rev= option to pass revision string 233789b0d Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE] 36b5f3e35 Sync SDL3 wiki -> header 0e552761b Renamed AudioStreamSpeed to AudioStreamFrequencyRatio 47bcb078f Fixed some incorrect SDL_AUDIO_F32 uses 2833f2e7b Fixed OOB access in audio_convertAccuracy test 8387fae69 Sync SDL3 wiki -> header 832181345 docs: Add note about Wayland application icons 825d34475 Make sure that the same timestamp is used for all PS5 events from the same packet 9c1430324 Removed SDL_dataqueue 28b28bd8f Added audio_formatChange test a59152688 Try and avoid overflow when handling very large audio streams 5394a805f Improved testaudiostreamdynamicresample e55844274 Added SDL_(Get|Set)AudioStreamSpeed 43c3c5736 Track the formats of data in an SDL_AudioStream 337fed3df Tweaked ResampleFrame_SSE Use _mm_unpack(lo|hi)_ps instead of _mm_shuffle_ps fd7cd91dc audio: Mix multiple streams in float32 to prevent clipping. 9097573e3 audio: Choose a mixing strategy on each iteration. bbe2e012a Don't provide the SDL3 header path c17a35f09 Fixed typo 4f72255eb Fixed README.md link e0ab59754 Simplified SDL_main.h migration notes d44bde61e Added SDL migration information to the top level README.md 6ff31e10c metal: Add hint to select low power device instead of the default one (#8182) 8a8aed477 Make sure that we process touch events that position the mouse f84c87f20 Sync SDL3 wiki -> header a7eea9997 macOS: Don't raise the parent top-level window when raising a child window, only raise the child window to the top of the parent a5e721479 Add SDL_WINDOW_NOT_FOCUSABLE flag to set that the window should not be able to gain key focus b385dc3b6 n3dsaudio: Patched to compile. 4e0c7c91f audio: PlayDevice() should return an error code. a94d724f1 wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL da5d93d3d wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's f002f7d12 ci: build emscripten with Debug buid type 3699b12ed audio: Fixed some "is_*" variables to be cleaner and/or more specific. 2471d8cc2 audio: Fixed logic error in SDL_OpenAudioDeviceStream. 1b03a2430 testsurround: fix order of arguments of callback 82db2b58f Renamed audio stream callback and moved the userdata parameter first 5bdad5210 Sync SDL3 wiki -> header 58c859f64 audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. efd2023a7 audio: Fixed documentation. 1e775e0ee audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. bd088c2f9 Revert "Clarify whether an audio function expects a physical or logical device ID" 82e481b52 Added --randmem test parameter ea68bb802 Add some additional checks to audio_convertAudio f8286df16 Fixed ResampleFrame_SSE doing unnecessary work b1d63be53 Fixed audio_resampleLoss test c191d6c30 Better Win32 transparent window support 923d612ca hidapi: sync macOS code with mainstream. 363f4fa9c avoid type redefinition errors after commit ee806597b9. 615824a80 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices 506a133d8 Clarify whether an audio function expects a physical or logical device ID 3b1d1e4e3 hidapi: sync the hidraw changes with mainstream f617918e0 cmake: check linkage to libusb too, instead of libusb.h presence only. 041dbd6b5 Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain b49d0a607 x11: Avoid including full Vulkan headers. 4d2f9f3a3 yuv_rgb: Comment out unused code. 3c3486e2a wayland: Don't include full Vulkan headers when not necessary. f066bbe98 x11: Don't include system headers twice. d86d02bbb updated dynapi after SDL_GDKGetDefaultUser addition 4355f9cec Fixed warning C4389: '!=': signed/unsigned mismatch 5755de07a Fixed build warnings 0f80d47bb Fixed thread-safety warning ee806597b Removed SDL_vulkan_internal.h from SDL_sysvideo.h 34860b932 Fixed testautomation --filter pixels_allocFreeFormat 6f8a6a31c gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath e30e5c77e Sync SDL3 wiki -> header c0cd8c814 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation 106abce69 Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. e44f54ec5 Avoid using hex-floats 5b696996c Added ResampleFrame_SSE 958b3cfae Tweaked and enabled audio_convertAudio test 7dbb9b65b audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation f6a4080ff audio_resampleLoss: Add support for multiple channels 4f894e748 audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length ab83f75bb Make sure GetAudioStreamDataInternal is called with a valid length 6a73f74b6 Rebuild full ResamplerFilter (left wing + right wing) at runtime 0c15ce006 Add a missing int cast b74ee86b1 Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds fba6e1e3d Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. 9f7a22fa4 Removed 64-bit handling from AudioConvertByteswap 1f5327a9f Removed future_buffer, left_padding, and right_padding from SDL_AudioStream 71ad52d6d Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly 69aec8c91 Fixed the report format for the Razer Wolverine V2 Pro 7c2669c9d Accept key events from any source 1e9d31448 Updated to Android minSdkVersion 19 and targetSdkVersion 34 8924d0d92 Added missing function prototype for SDL_WriteS64BE() 845f3c745 Fixed mismatch between stdlib calloc() and SDL free() fb7921173 emscriptenaudio: Fire the capture silence_callback at an interval. 5191b2054 emscriptenaudio: Don't bother undefining things about to be unreachable. fd75a4ca0 emscriptenaudio: Deal with blocked audio devices better. 981b8a337 emscriptenaudio: Remove unnecessary functions. c7588e426 Transparent window for Win32 + OpenGL (#8143) f9581178d cmake: fixed a typo. e6c878824 Fixed ResampleAudio interpolation factor calculation 498363863 Misc audio tweaks/cleanup 72d9d53de Invert the inner ResampleAudio loops to avoid doing unnecessary work 88123a510 The history buffer should always have the maximum possible padding frames 96e47f165 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames d2b9c8b80 Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) 14e38b17d Removed assertions from inner ResampleAudio loop 9d413dfdc The history buffer doesn't need to be so large 2788e848f Allow resampling less than 1 frame of input 383084e0a Pre-calculate resampling rate, and use it instead of .freq in most places 40a6a445c Update resample_offset inside ResampleAudio 47fea7f06 Used fixed-point arithmetic in ResampleAudio 7bb4e806e Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place b9541b9ea Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns cdaa19869 Track offset within the current sample when resampling d60ebb06d mouse: Ensure that the dummy default cursor is removed from the cursor list e58c2731f mouse: Free the default cursor when destroyed 789ce17e1 audio: Don't resample in chunks for now. cbab33482 audio: Don't call SDL_AudioStream callbacks for empty data sets. 3e1ae0c86 Clearified the libusb whitelist default logic f4520821e Removed some unnecessary integer casts 0989b7e86 Avoid using designated initializers c6c1e673c Optimized SDL_Convert_*_to_*_Scalar f97b920b3 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. 300d1ec3e Added audio_convertAccuracy test 32cecc2ea Fixed assertion in audio_convertAudio 33f11e21e Removed assertions in AudioConvert(To|From)Float c2f388fd8 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci 371cc2d17 wayland: Remove unnecessary flag and state settings fe85e6e75 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed ddddcb78c cocoa: Use the close method to hide a miniaturized window be8c42cfd Clarify that a window being 'hidden' means that it is unmapped/ordered out a44338cbc Fix typo in SDL_audiocvt.c f464eb2c5 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. 6607a3cfa Disable cache in python http server 181d5d285 hidapi: Enable libusb support by default. f0f15e365 hidapi: Use a whitelist for libusb when other backends are available c3f7a7dc4 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 796713b9d xxd.py: always write \n line endings 723bcd0a8 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. git-subtree-dir: external/sdl/SDL git-subtree-split: 399bc709b7485bab57880f8261f826f29dc0d7b2
2023-09-23 18:45:49 +02:00
SDL_SetKeyboardFocus(window);
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_RESTORED, 0, 0);
}
}
}
#define NOT_A_VULKAN_WINDOW "The specified window isn't a Vulkan window"
int SDL_Vulkan_LoadLibrary(const char *path)
{
int retval;
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return -1;
}
if (_this->vulkan_config.loader_loaded) {
if (path && SDL_strcmp(path, _this->vulkan_config.loader_path) != 0) {
return SDL_SetError("Vulkan loader library already loaded");
}
retval = 0;
} else {
if (!_this->Vulkan_LoadLibrary) {
return SDL_DllNotSupported("Vulkan");
}
retval = _this->Vulkan_LoadLibrary(_this, path);
}
if (retval == 0) {
_this->vulkan_config.loader_loaded++;
}
return retval;
}
SDL_FunctionPointer SDL_Vulkan_GetVkGetInstanceProcAddr(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return NULL;
}
if (!_this->vulkan_config.loader_loaded) {
SDL_SetError("No Vulkan loader has been loaded");
return NULL;
}
return (SDL_FunctionPointer)_this->vulkan_config.vkGetInstanceProcAddr;
}
void SDL_Vulkan_UnloadLibrary(void)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this) {
SDL_UninitializedVideo();
return;
}
if (_this->vulkan_config.loader_loaded > 0) {
if (--_this->vulkan_config.loader_loaded > 0) {
return;
}
if (_this->Vulkan_UnloadLibrary) {
_this->Vulkan_UnloadLibrary(_this);
}
}
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
char const* const* SDL_Vulkan_GetInstanceExtensions(Uint32 *count)
{
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return _this->Vulkan_GetInstanceExtensions(_this, count);
}
SDL_bool SDL_Vulkan_CreateSurface(SDL_Window *window,
VkInstance instance,
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
const struct VkAllocationCallbacks *allocator,
VkSurfaceKHR *surface)
{
CHECK_WINDOW_MAGIC(window, SDL_FALSE);
if (!(window->flags & SDL_WINDOW_VULKAN)) {
SDL_SetError(NOT_A_VULKAN_WINDOW);
return SDL_FALSE;
}
if (!instance) {
SDL_InvalidParamError("instance");
return SDL_FALSE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!surface) {
SDL_InvalidParamError("surface");
return SDL_FALSE;
}
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
return _this->Vulkan_CreateSurface(_this, window, instance, allocator, surface);
}
SDL_MetalView SDL_Metal_CreateView(SDL_Window *window)
{
CHECK_WINDOW_MAGIC(window, NULL);
Squashed 'external/sdl/SDL/' changes from 399bc709b7..0d7df16812 0d7df16812 Timers are a required platform feature 518b070aa9 Fixed drop event coordinate conversion 3ca8cee874 Sync SDL3 wiki -> header 8bf74280e0 docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 9408299bad Set the number of audio devices to 0 if audio hasn't been initialized be0ba78c56 Convert the coordinates in drop events as well (thanks @Dragon-Baroque!) e6c8872fdc Fixed bug #7614: Segmentation Fault in SDL_BlitSurface ce0e0675de Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY 6e48d4532c Added raw input device handle for WM_INPUT mouse button handling cf5e0637b5 Touchpads already have their right/left buttons swapped in raw input fb2d7ed83e Restore window minimum and maximum size if it is recreated 915afae514 Remove force using one thread 64a3e2d17d Remove ps2_driver from workflow 464a41411e Sync SDL3 wiki -> header 4f3d4bd110 wayland: Add the ability to import and wrap external surfaces 99f6bcf504 Sync SDL3 wiki -> header 3a4ac15a27 Make Xbox GDK code public (and fix some GDK code rot) (#8844) 649556befa win32: Let windows manage the floating state unless explicitly overridden d4a9748740 win32: Fix test failures 101f903bb1 testgeometry: allow to use arrows to move the triangle 4033a0a83b Prevent ASAN warning: like SDL_triangle.c:305:30: runtime error: left shift of negative value -672 (even if the value was correctly computed) f0b9c7f0f0 Let Windows track floating window state 98be55894e Moved window state change handling from WM_WINDOWPOSCHANGING to WM_WINDOWPOSCHANGED 7efeb36131 Pass the frame DPI to WIN_AdjustWindowRectForHWND() e4ee1cade7 Revert "SDL_windowsevents.c: fixed -Werror=unused-variable" f8cce4ead4 SDL_windowsevents.c: fixed -Werror=unused-variable 277fded7ba Refactor AdjustWindowRectEx() into WIN_AdjustWindowRectForHWND() 312160935d Removed deprecated use of __IPHONEOS__ (thanks @Dragon-Baroque!) 483155bbf9 Fixed borderless window client area calculation cf0d1d7234 Fixed ASAN warning, runtime error: left shift of 160 by 24 places cannot be represented in type 'int' 0c6b070761 Capture debug macros off by default b5bc64aa55 Fixed pause key on Windows (thanks Mikhail!) d766f68cb3 Fix compile error with XInputOnGameInput.h ec2159d492 tests: Clean up the window creation properties in the Wayland custom surface example 9a77813df0 WinMain is specified by the Win32 API as having extern "C" linkage 6407e0cc37 Added attribution for GIP protocol handling (thanks @medusalix!) 3a219caf3d wayland: Restore accidentally removed line of code ccae9c1ef6 Only initialize audio drivers that have been requested 590d0bec6f Revert "Make sure new windows have mouse and keyboard focus if there's no windowing system" 5948ea997f Make sure new windows have mouse and keyboard focus if there's no windowing system 05d18aab1c Sync SDL3 wiki -> header 4b6df89238 wayland: Add a property to allow creation of a wl_egl_window object even if OpenGL is not enabled f7dd0f9491 wayland: Allow the creation of roleless window surfaces for custom application use 4417250d0d wayland: Remove the registry from the window properties 392796e49c wayland: Eliminate redundant protocol checks 82f2c4d581 render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture. 95066ce2a0 Sync SDL3 wiki -> header df438a3170 opengl: OpenGL renderers need to support texture target in properties. 8e7c0b34d7 test: If SDL_CreateRenderer() fails, say why 022ff075b9 test: When listing test-cases, say which ones are disabled 44adab7dfd Sync SDL3 wiki -> header 059fb560ba gamepad: Clarify range and direction of axes 4942027117 Sync SDL3 wiki -> header e056f52f7d include: Remove string literals from properties documentation. e8c595af5c Sync SDL3 wiki -> header adef35b9ec include: Attempt to make new properties documentation wiki bridge friendly. 4ffec098b7 Sync SDL3 wiki -> header 9bc7cfc755 render: Added SDL_GetTextureRenderer(). 7eae08cfc4 Removed SDL_GL_BindTexture() and SDL_GL_UnbindTexture() 4d5bffc323 Sync SDL3 wiki -> header 1a13dae219 Added constant definitions for SDL properties 3deefa6b43 Updated documentation for SDL_HINT_SHUTDOWN_DBUS_ON_QUIT 2348e8b6a2 Add hint to make SDL handle dbus_shutdown() d3daba791a Don't try to send the PS third-party feature request to the Logitech G815 keyboard 014a63b4b5 Renamed ShowTextInput/HideTextInput to ShowScreenKeyboard/HideScreenKeyboard on Android 3a9a52fe6c updateKeyboard should use the SDL window's screen instead of the view window's screen, which may be nil. e100992c17 Added mapping for the RX Gamepad, e.g. Pandora Box 7 139a0931a3 Fix memory barriers on ARMv5 21c80ac843 Added a practical example of confirm/cancel gamepad button handling 787a15f760 Fix Mac child windows that are created hidden showing if their parent window is shown d6b1fc9576 Add SDL_MAC_REGISTER_ACTIVATION_HANDLERS hint to allow disabling the normal application startup/activation/deactivation handlers 7c5e694022 Ignore a new warning in Visual Studio 2022 73d02184d7 docs: Add Wayland to the SysWM migration example c03c01e9b2 Make sure we get mouse events as soon as possible 5cbdeab799 Rename SDL_mslibc_x64.asm -> SDL_mslibc_x64.masm ed62d6e7de cocoa: Set the titled flag on fullscreen space windows b4b5dbd92f testcontroller.c: fixed warnings. 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 987744aae8 Fix Duplicated includes 2b369a14ab Fixed allocation and alignment of raw input buffers bec1b8f849 Add basic rumble support to Steam Deck 8fe4a45edf Use GetRawInputBuffer() instead processing raw input one at a time 87b8f09657 Fixed warning: no previous prototype for function 'SDL_PrivateGetGamepadButtonFromString' [-Wmissing-prototypes] c2951655ff Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 5b3ee51c6c Updated copyright for 2024 a7b79c483c Remove unused 'window' variable from -[Cocoa_WindowListener windowWillExitFullScreen] dd2d809407 AndroidShowToast: make OneShotTask members private final 44c2f344d6 Fixed build 2faae8457d The C standard defines a boolean expression as a signed integer value. e3d50619f8 Fixed fatal error: SDL_pen.h: No such file or directory dfe1a37bab Fixed error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] 423b1fafcd Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' 7681695875 Revert "Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions" 8f94102b04 tests: Use unsigned format specifiers for printing flags 5d0c893723 wayland: Remove bitfield specifiers from boolean values 530b41d531 Fixed warnings in SDL_pen.c 9906d6d3bc Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data ebd7f9adbd Fixed warning C4245: 'initializing': conversion from 'int' to 'Uint32', signed/unsigned mismatch in SDL_video.c dc1c27885e Fixed warning C4389: '!=': signed/unsigned mismatch in SDL_blit.c e813c72b3c Fixed warning C4245: 'return': conversion from 'int' to 'SDL_JoystickID', signed/unsigned mismatch dce626f469 Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data 7f376277e5 Fixed warning C4244: 'initializing': conversion from 'SDL_bool' to 'Uint8', possible loss of data 61db102da9 Fixed signed/unsigned warnings with Visual Studio when comparing SDL_bool with boolean expressions d71454da17 Store the surface properties in the reserved pointer of a surface b6a92c113f wayland: Don't apply old libdecor window dimensions 39e24e52c8 Fixed example of creating a window with properties dc450ba908 Added an example of creating a window with position ce4fe32ce3 Added documentation for getting the X11 display from an SDL window 327d31a5d9 Added documentation for getting the NSWindow from an SDL window 3976bbef2a Added documentation for getting the X11 window from an SDL window ffb8515c21 Use the Valve code name for the Steam Deck controller 43c40d30a2 Added comment for the BDA Pro Ex controller 61704b5862 Removed an assertion it's possible to hit c24b33d8d9 Fixed building with older Windows SDK 70ba3f2830 Report the D-Pad for HIDAPI gamepads as a hat ce329d60e4 Added support for alpha blending using palette alpha 9c3e831e33 uikit: Send fullscreen enter/leave events 5df3eac925 Sync SDL3 wiki -> header 0dfdf1f3f2 Fixed crash if joystick functions are passed a NULL joystick 4ce935b910 Fix static build with libdecor 0.2.0 5d6d149862 Allow passing in `extrainfo` value to `GetMouseMessageSource()` e0df963ef0 Fix wrong bit count in comment c2a55cd2c5 Add missing `(void)` in functions params a3c8f2f6cb Consolidate mouse-touch event checking logic d747daf03d Use correct touch check flag a961066d0b Add basic touch/finger support to `testpen.c` a3b5eb07b2 Removed extern "C" linkage from main() declaration 50e309bb17 Include SDL_events.h in SDL_main.h cae657140c Add Access Controller 74418e1aa8 Made the cursor list check a compile time assert instead of a runtime one d6fb0d91d8 Added testpen to the Visual Studio solution bbdd41f287 Fix windows touch using wrong axis for normalisation a28ac29aa0 Add missing cursor types 6daf2e943f Try SDL_UDEV_deviceclass to detect joysticks even if in a container 1bf78ed544 We get a resize event when the view enters fullscreen mode on iOS e3b5999bb4 Use the application requested size to determine automatic orientation on iOS 278e3f9184 Whoops, fixed setting fullscreen flag 69e60e0f1b Fixed setting fullscreen mode on iOS 0e5ea3cc4b Fixed infinite recursion when adding an accelerometer as joystick on iOS c3d84c3342 Record the initial input report mode and only restore simple mode if that's what we started with 10a8b750a0 Use common generic syscond for platforms with no cond implementation 4914e5bb78 PS2 use WaitSemaEx for waiting for semaphore with timeout bb0e0ae080 Added a runtime check for BLUETOOTH_CONNECT in addition to BLUETOOTH (thanks @perepujal!) 312f98c2a1 Make sure the string is terminated, fixed invalid read in SDL_PrivateParseGamepadConfigString() 199f7cc3b1 x11: Ignore border extents when the border hint is unset 07e9603398 Sync SDL3 wiki -> header ffd82fb7c4 Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear(). 5dba04b29b Remove SDL_{Set,Get}SurfaceScale(). Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked() (see #8732) e66896406d cocoa: Set appropriate flags on fullscreen spaces windows 57fcb9044c video: Remove more assumptions about window state in the video layer cb90653695 win32: use USER_DEFAULT_SCREEN_DPI instead of explicit 96 value a2e05480d6 Use crc16 return value when calculating GUID 2ad50e9675 Make the SDL3 surface ABI compatible with SDL2 f72d6a7fd9 Use more verbose names for properties, to match upcoming public property names 1f1ee6f77c Use the original manufacturer and product strings for the joystick CRC 4bb5e1f0f9 Added migration notes for migrating Steam Input support from SDL2 to SDL3 56f111dffc Fix compilation / same as sdl2-compat 72c366bf3d Fixed whitespace 3152b98e87 win32: minor fixup in WIN_UpdateKeymap() 2c4360ce8f Sync SDL3 wiki -> header c981a597dc Added Steam Input API support for game controllers a8f4f40d08 Sync more Steam Controller header definitions for the Steam Deck e6e54b22c8 Ignore all surface comparison output files in the testautomation directory 9d13be743b Make sure we're rendering whenever the activity might be visible, even if we don't have focus. 69ec0322d3 win32: Make leaving fullscreen when the window already isn't fullscreen a no-op 8f79e0b7f8 win32: Fix high-DPI debug logging a4496f7dcf Update doc: SDL_SoftStretch() and SDL_SoftStretchLinear() #8667 43309d38ed joystick: Extract 0x02a9 and 0x0291 PIDs into separate defines. 84a0d5f623 Added SDL_SetSurfaceScaleMode() and SDL_GetSurfaceScaleMode() to control scale mode using SDL_BlitSurfaceScaled() 4d5949dcf6 Added a controller name for the Steam virtual gamepad 695846f2ed Pass through the name of the controller for the XInput mapping 1745289b1b x11: Don't move the window when restoring and ensure that resize and position events are sent when entering or leaving fullscreen 08a7ca4d53 XInput: Use XInputGetCapabilitiesEx instead of fragile GuessXInputDevice 7f75178908 Verify that the %p format specifier works for 64-bit pointers 72b7acfe8a Don't create a TLS error buffer if we're just clearing the error 240e7747c8 Fix #8702: Add SDL_hidapi_steamdeck.c to Xcode target b937c54b66 win32: Set all size and position variables for external windows 8c285828e5 Fixed return value for SDL_UDEV_AddCallback() cbf9012c74 Fixed build 5547007915 Added test for inverted cursor 0ab13f2498 joystick: fixup for Wireless Xbox 360 Controller VID/PID detection in WGI backend. 627d134b9e Add support for monochrome cursors with inverted pixels under Windows. 21879faf48 wayland: Handle mouse focus when receiving touch events 58a5f5cbe8 Allow sendCommand() to be overridden by derived classes e6d8ef1a5b Revert "Back out Steam virtual gamepad changes" b0e7b7db6f Don't unload graphics libraries until after the window has been destroyed. 69288038ed Refactor away some additional integer types. f3048e3cd2 Add new file to vcxproj files. 5a21febecb Add new steam deck HIDAPI controller to controller database. 67d44c1017 Disable lizard mode while steam deck HID device is opened. 6dd6827343 Translate steam deck HID reports to SDL events. 94f621e030 Implement steam deck HIDAPI initialization. c1a7d0f96e Add steam deck detection and HIDAPI driver scaffold. 0baee3e676 Reversed test to be easier to read, more efficient, and match other code bddbd1e317 cocoa: Check the resizable flag along with zoomed status when resizing 835c733f4d video: Only sync when programmatically entering/exiting fullscreen c790572674 Use existing XUSB driver software PID 0x02a1 instead of PID 0x02fe 581d1cab25 You should call present when using a software renderer as well. 5173b0c2cc Make built-in joystick device lists extendable by using hints 34eb24ebc4 Back out Steam virtual gamepad changes 7529d25b2b Use the Steam virtual gamepad slot as the gamepad player index 445f08a0fb Print the gamepad player index when opening a gamepad 17723381da Sort Steam virtual gamepads by Steam controller slot f3d8a2def5 audio: Fixed resource leak in unlikely failure case during device add. 63ae84e140 x11: Improve sync algorithm 7e5511d3cd x11: Move unrelated variables out of XFixes #ifdef 3c5e9e6112 We can wait up to 500ms in onNativeSurfaceDestroyed(), so wait at least that long in onDestroy() 53cda988f4 Clear any errors from a previous run a197efe3a7 pen: fix leak caused by pen subsystem fbb0914b78 wayland+x11: free system cursors when quiting video 7484d02a2e testshape: use SDL_test to create multiple windows 20250aecc5 Sync SDL3 wiki -> header 4fd778119b video: Implement asynchronous windowing ace385a134 Revert "Fixed warning C33010: Unchecked lower bound for enum scancode used as index." e482f00a17 SDL_string.c (SDL_vsscanf): fix gcc build f00ecf5f19 Fixed building with older Windows SDK 7ca43995a1 Fixed warning C4028: formal parameter 1 different from declaration aab7432f5f Fixed analyze warnings for SDL_dynapi_procs.h c484140f56 Fixed warning C33010: Unchecked lower bound for enum scancode used as index. 02a116217d Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 91da942b33 Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations. b8840801cc Fixed analyze warnings in SDL_xinputhaptic.c 8e0d728c67 Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). 6a736d7766 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 1fcc75ba81 Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'. 7f2e16db8b Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 163de8e697 Fixed warning C6001: Using uninitialized memory 'rdi'. e29393e407 Fixed warning C6001: Using uninitialized memory 'devName'. 0f34ca2e71 Fixed analyze warnings in SDL_xinputjoystick.c 2b5c7db645 Fixed analyze warnings in SDL_render_d3d12.c a28769759b Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info' 6ee34380f4 Fixed warning C6011: Dereferencing NULL pointer 'viewport'. 230581f4a8 Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2). 3775d9be4b Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations. b512182222 Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 8a82f7e837 Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized fda039e6f8 Fixed analyzer warnings for SDL_string.c 22f44aefe7 Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'. eab2d97d07 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 41bfcad5d7 Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'. 54dc73aa88 Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written. 0dad56354c Fixed warning C6326: Potential comparison of a constant with another constant. c9b243fb56 Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack. 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. 3db4695ac7 warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'. c7d81d936a Fixed warning C6031: Return value ignored: 'GetKeyboardState'. 69b9d44bdc Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). a9b87ee201 Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem 21f273ecc7 Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. 0c4cb3d153 Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). 06f8f9a891 Fixed warning C6326: Potential comparison of a constant with another constant. 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. 226f8fde09 Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did. fe6b3ab0b0 Fixed warning C6031: Return value ignored: 'CLSIDFromString'. f3b0149756 Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2). 6cfce101fb Don't call the property cleanup function if setting the property fails 14380ec48a Fixed signed/unsigned comparison warning ac0751a652 Added SDL_strnstr() 7c71e72193 SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function). 058213366b Make sure we use alpha of 0 when clearing a transparent window with no content ecd56bb8f0 Removed SDL_GetErrorMsg(), trivially implemented in application code 66e532fa61 Handle out of memory errors without any allocation 579681a372 fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h 675423f096 Sync SDL3 wiki -> header 744a29b88f WGI: Cleanup code a bit (#8647) e4582e6edc Sync SDL3 wiki -> header df0fd55891 wikiheaders.pl: README files are no longer in Windows endline format. 1072b6e86e docs: fixed typo f184dea16c uikit: Patched to compile. 447b508a77 error: SDL's allocators now call SDL_OutOfMemory on error. 70b65d4170 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. d1b831e232 include: Clarified documentation for two functions. daa38dc793 touch: Replace GetNumTouchDevices/GetTouchDevice with a single function. dd47da8a5c gamepad: Replace GetNumMappings/GetMappingByIndex with a single function. dfee3f9e92 render: Replaced SDL_RenderFlush with SDL_FlushRenderer. eef5c53668 docs: Moved CREDITS and INSTALL to markdown format. f32575dfab docs: Convert everything to Unix-style endlines. c5daf8adb1 testcontroller: Don't query the mapping list until after they are available. df05d5eff4 Fix scroll wheel handling in testmouse 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl fea6e7afb1 cmake: copy sources to binary directory in separate target 9faa7977bd UWP: Add support for supplementary Unicode characters input 7b628ea4d5 Win32: Simplify Unicode text input code 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) 3e6513c773 document the purpose of SDL_SetTextInputRect 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes 6b28065e9e Reformat Win32 scan code table 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. 571e9796b9 Fixed the GameCube HIDAPI controller mapping dd984dcd9f Removed HIDAPI controller mappings 3817f5126e cocoa: Use `-[NSApplicationDelegate applicationSupportsSecureRestorableState]`. c5b0ff77d7 test: testwm2 now displays keyboard mod state. 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream 1b284cd415 X11 pen detection: fix misclassification due to improper init c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things d486de6349 cmake: fixed iconv detection test program 42a8139fd6 render: Clip bresenham lines against a real viewport thing. 4a40a272bd render: Patched to compile. 983f178b7d render: Clip lines before Bresenham algorithm generates points. db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. e548044a82 ci: add NetBSD to test matrix dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 6ba90f7775 render: Batching is always enabled now! b24d6bd59a opengl: Creating a texture trashes the cached `texturing` state, fix it. dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. 74a2542564 x11: Deal with difference in GLX_EXT_swap_control_tear behavior. 08fac5b1b2 SDL_PenModifyForWacomID: return zero as axis_flags upon failure. aaba01aee4 hidapi: syncing with mainstream: 5730eb67f0 add HAVE_GCC_DIAGNOSTIC_PRAGMA to SDL_internal.h, use it 42c8366fdc revise iconv detection: a45b371de0 cmake: create and install SDL3::Jar target for Android 53544cabaa psp: fix copy/paste error from SDL2 in PSP_VideoQuit(). 6cde96f9a0 psp: Hook up event subsystem init/quit. e9659f5738 Removed some function declarations that don't actually exist. 3264e64738 SDL_RunApp: Make sure argc/argv are stable if the caller didn't define them. eca79e38db Removed test shape images 81fc7ded78 Removed the window shape API for SDL 3.0 45938bbfa5 Corrected comment 059e550e98 Fix 3DS Analog Values (#8581) dbf14df80f Fix joysticks returning invalid device IDs d2db3f3993 ci: cache android ndk archive d6291d4d42 alloca: use alloca from <stdlib.h> on NetBSD f26a93211f SDL_bsdjoystick: fix -Wundef warning on FreeBSD d1def7f033 cmake: add openbsd wscons sources to build, if supported 86d77bbcc5 kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV 94ad1a4ae4 SDL_bsdjoystick.c: fix -Wundef warning. e761770c24 No, this wasn't right b7d7e54895 Fixed uninitialized variable 119e02f314 Always use 'm' for controllers provided by the MFI joystick driver 75df4cc5c2 Don't tickle PS4 Bluetooth controllers in simple mode 0d431015bf Extract BMP magic into separate define 0413f6fc49 Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) fd91178d7f Make size cursors be double arrows on Wayland 5e9b0820f3 Add cursors for X11/Wayland window resizing 91e122316c Use SDL_small_alloc() instead of SDL_stack_alloc() in CreateMaskBitmap() b76f8de298 Hit testing tweaks for X11 and Wayland (#8582) 5b1c68c2f3 testshader: Don't make local variables with the same name as GL entry points. 30a2291d59 Fixed compatibility with sdl2-compat (thanks @sezero!) 49d58bc73a Cleanup WIN_CreateCursor() code a bit 4722269fb6 tests: Print window occluded log events 5db781cc3d Use the correct pixel formats for OpenGL ES on big endian 05e7dcf8f8 Support returning <8bpp surfaces in SDL_LoadBMP_RW 773ec1cfcb Extend blitting support for all <8bpp formats 753bbd199e Add SDL_PIXELFORMAT_INDEX2LSB and SDL_PIXELFORMAT_INDEX2MSB fda69e5e79 Test both MSB and LSB indexed surfaces in testautomation 39870031d1 use format string attributes for functions accepting va_list params, too 666301f9f9 Fixed build with older macOS SDK 238987df3b Always use physicalInputProfile on OS versions that support it e424dcca4b More fixing the build with older macOS SDKs 4ebb0c6dac Revert "Fixed build" 7abacc9f9f Fixed build ac1f896f89 Fixed building with older macOS SDK 8043dad369 Fixed build warning 5c8c3931f2 Removed outdated information about SDL_GetWindowWMInfo() e0d0d140b2 Fixed SDL_GetWindowWMInfo() code example f61c0f3dc1 SDL_HINT_TV_REMOTE_AS_JOYSTICK should only affect Siri Remotes on Apple TV 51fc134cad Added support for the second generation Siri Remote on Apple TV bfba9de43a Revert "Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping" f2c12fe5f3 Removed TODO.txt d4448fe3d2 Update virtual joystick test now that we're just using abxy for mappings, for compatibility f40f272107 Fixed build 34bdd321bf Improved navigation while setting up controller mapping 57e5c7f6ee We'll just use the legacy names for face buttons in the mappings 051ed397d1 Removed testautomation_syswm.c from the Xcode project fb08c22abf Disable controller state debug messages 2999634f29 Map Siri Remote touchpad to D-Pad for consistency with physicalInputProfile mapping 2ff9255f29 Print the GUID for controllers that don't have a mapping 64939d3586 Switch the menu button on the Apple TV remote to the B button to match UI guidelines 0fe5713964 Improved GCController handling on Apple platforms aaf54b09a1 Revert "Cleanup WIN_CreateCursor() code a bit" e923a458ea audio: Protect against race conditions when closing a physical device. 8fa0746d4a audio: Fix postmix state when migrating to new default devices. 078995bbe0 x11: Set the skip taskbar and skip pager atoms on utility windows a58af6d0d1 wasapi: Reference devices when proxying to management thread. 34392db9c3 Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization 708f18d49e Added SDL_HINT_JOYSTICK_IOKIT and SDL_HINT_JOYSTICK_MFI to control whether the IOKit and GCController drivers should be used for joystick support. bd4966999b Replacing SDL_SCANCODE_AUDIOMUTE by SDL_SCANCODE_MUTE on Windows 15504da0b8 Fixed mouse wheel scrolling direction on iOS f5600fd9f4 Fall back to using the physical profile for Apple controllers if they don't match a standard profile 924de4df48 Enable transparent windows when using the D3D11 renderer 1c64366b80 Added SDL_CreateRendererWithProperties() and SDL_CreateTextureWithProperties() 7203641597 Note that the SDL window properties are read-only e0c45c6c98 Renamed SDL_WINDOW_FOREIGN to SDL_WINDOW_EXTERNAL 229b7b9d50 SDL_CreateWindowWithPosition() and SDL_CreateWindowFrom() have been replaced with SDL_CreateWindowWithProperties() 2c1fbe1967 Revert "Check to make sure the Windows joystick device has buttons and axes" edd044e901 Fixed the ROG PUGIO II showing up as a game controller 861b1ebd12 properties: Use a mutex instead of an RWLock to guard the hash table dd8ab67bd9 Sync wiki -> headers. 91460fc13d include: Fixed up documentation in SDL_pen.h 876c97454a Cleanup WIN_CreateCursor() code a bit 8766aa39d6 Sync wiki -> headers. e5ffd6d8eb include: Removed `\link` and `\endlink` Doxygen tags. 1c4723ac66 SDL_CreateWindowFrom() now takes a set of properties that describe the native window and options. 6afae6681b Allow casting properties of different types bd269b0f41 Added SDL_SetBooleanProperty() and SDL_GetBooleanProperty() c47ac5b2df include: Fixed copy/paste error 0efb3d90e0 audio: removed a fixed FIXME comment. 69cae07cc1 cpuinfo: Fix detection of physical memory above 2GB on NetBSD 45fc828c95 move SDL_EVENT_WINDOW_PEN_ENTER and SDL_EVENT_WINDOW_PEN_LEAVE down 0907f345cb Added property types: pointer, string, number, float 7c80ac6df7 API for pressure-sensitive pens + XInput2/Wayland d3e43668d0 Revert "Sync SDL3 wiki -> header" 43571769f1 Sync SDL3 wiki -> header 843873626c Handle window resizing on the render thread in D3D11 and D3D12 f66f61de01 Fixed missing "0" in the button list 04b6b2979f Re-add SDL_assert() with non boolean ptr syntax (#8530) b374105975 Replaced SDL_GetTextureDXGIResource() with texture properties 09d1e9defb Only update the battery status for Bluetooth Switch Pro controllers 87794d03ad Added shortened name for "Nintendo Co., Ltd." fbb6934905 Added support for the Dragonrise GameCube adapter with VID 0x1843 d98e1bdfe1 Use the standard gamepad type for Switch Pro controllers using the GameCube form factor a5a47d3bee Fixed crash if there is no controller mapping 312faf9305 Updated documentation for the controller face buttons 2991b9f6ac SDL now represents gamepad buttons as positional elements with a separate label 8708ba7393 Don't leak if realloc fails 36b2d2e463 Fix memory leak in SDL_SendDrop() dfb87e1099 Fix uninitialised variable 'properties' e54c5e0204 Fix condition in SDLTest_TrackAllocations() 89408a9705 wasapi: ResetWasapiDevice no longer blocks on management thread. aa7baf63aa Sync wiki -> headers. 74f3643bfa wayland: Add missing break to switch statement 2d6bae70b4 Older gcc does not support #pragma GCC diagnostic inside functions d8600f717e Pointer as bool (libsdl-org#7214) 23db971681 x11: Ignore deprecated declaration of XKeycodeToKeysym 61c39ce848 ci: re-enable Intel compilers on ci 4ac3f5c07e Updated Xcode project with the video capture API 59f93e20a7 Add SDL Video Capture, with back-end for linux/macos/ios/android 3ab98a3572 Removed debug print statements (thanks @stsp!) f4b61fff30 Implemented VT switching for KMSDRM on Linux 391a3d23d0 cmake: the compile-time pdb does not have a suffix, if set a6541166bc cmake: also install pdb files of static libraries 2e3f574f8f cmake: don't add the C runtime library to the .obj file (when using MSVC) bea34c5380 Fixed a memory leak at window creation. b5347c3364 Fixed emscripten and iOS builds 02f356439d Allow the application to draw while Windows is in a modal move/resize loop 1934417b4d Show the existing mapping when a controller is connected 407a3cb4e0 Fixed infinite recursion initializing properties 979214363f Added SDL_GetGlobalProperties() 151cdfa99f Added the "SDL.window.wayland.registry" property 6c91b28e71 Added the "SDL.renderer.d3d12.command_queue" property 4e8d1ec983 Fixed crash trying to create a metal view with the dummy driver fd4a2cce9e SDL_syswm.h has been removed and replaced with window properties aea6e6de6f Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup() a1941fad6c Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties. 0cd4b7d3e3 Added display properties a02afbaea5 Clean up window properties when the window is destroyed 8668943746 Standardized property names for internal SDL properties a4c6b38fef Fixed FreeBSD build d9e6dcc650 Fixed FreeBSD build 7cc3e94eb2 Store the requested muted state ce9e1bd324 Don't mute the console input if we can't read the keyboard 0a1b6b270f sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work 80b2bbad21 Removed useless branch test 15bc12165a Actually we need to enumerate the 8BitDo Xbox SKUs 8049af3355 Assume all 8BitDo Xbox controllers have a share button ed1e0c1530 Make sure joysticks are locked when adding and removing them 415283ef38 Fixed checking for linux/input.h fea2504a37 Prioritize the pipewire audio driver over ALSA 04e98d2236 Added missing calls to SDL_InvalidParamError("surface") 521bbcc15e Destroy the window surface if we've created it for the software renderer 28e623c504 Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!) 4106697774 Make sure we include the null terminator in XLookupStringAsUTF8() b5057edf29 Remove unused SDL_TextureModulate enum 9458cbf75e Removed unused SDL_OSEvent 1a57f6bb29 wayland: Remove QtWayland extensions 5f920d6639 fix emscripten build after commit 07cb7c10 22016b4eae Enable the 5th player LED on the DualSense controller 66cf30c2de Removed misleading comment dbcd390cdf Log drag and drop position updates in SDL test programs 07cb7c10a1 Fixed connecting and disconnecting real-joysticks closing virtual joysticks in Emscripten (thanks David!) 869257a5c1 SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface. c6d9fb1ad7 hidapi: Avoid memcpy'ing to NULL. 4d1aecc225 vulkan: Patched to compile on iOS. fccec65afe Sync SDL3 wiki -> header 2f92807087 vulkan: SDL_Vulkan_CreateSurface now accepts an app-provided allocator. c53843a961 docs: Remove Doxygen `\brief` tags. c132295ad7 SDL_FlushEventMemory is not a public procedure. 7ac281f800 Sync wiki -> headers. f7d40b7594 Added 10-bit pixel formats in addition to SDL_PIXELFORMAT_ARGB2101010 3e4d7e48b0 Fixed memory leak in XInput code bc3d9e99f3 Only save ibus_addr_file after we've successfully read an address from it. 04dfca958a Added a note to events indicating that memory is owned by SDL 20cd789bab Improved migration documentation for the event memory change. 459f17257c cmake: fix MSVC unrecognized option link warning 761390b62f cmake: detect linker id, and assume MSVC does not support version scripts d2e005ee13 dynapi: remove duplicated SDL_LoadWAV entries 21ff699251 test: Fix popup test crash on exit 70c149c88f Automatically clean up memory associated with events 1a83bf2399 fix a possible memory leak in SDL_vasprintf() 59b37d0e5b cmake: fix Windows unrecognized option link warning 9302d7732d Fixed touch normalized coordinates ff3c20a799 Sync SDL3 wiki -> header 17a0fe3a0c Sync SDL3 wiki -> header 14d2471a8f Sync SDL3 wiki -> header 2ad22eeeb5 Sync SDL3 wiki -> header 930438dfb7 Added note that the #ifdef is for !__IOS__ c56583fe45 Fix duplicate symbol on iOS/tvOS 2b62f25a6f Add SDL_sysmain_callbacks.c to the Xcode project 4ab31ca678 Fix dropping file event 5dce4bc716 Makes SDLInputConnection and DummyEdit public classes (thanks Cole!) d3f2eb2aba Use XINPUT_STATE instead of XINPUT_STATE_EX (thanks Andrew!) 3a482ebae0 Add createSDLMainRunnable() to SDLActivity (thanks Cole!) b9784feb24 Fixed potential uninitialized memory access (thanks Mathieu!) 75ea3a8d32 Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events 2a1660ab51 Additional cleanup for SDL_RWprintf() (thanks @sezero!) e5f2cea234 Sync wiki -> headers ad842dd5ad Fixed a typo in SDL_log.h f9d11807c0 Added SDL_RWprintf() and SDL_RWvprintf() to do formatted printing to an SDL_rwops stream 52c4e3eab3 events: Update self-referential pointers when copying event objects 91f0456391 Add the source application for drag and drop events (thanks Nathan!) 1a8bf31a69 include: Fixing whitespace on SDL_MixAudioFormat. d07a264a9b Use the default UCS2/UCS4 conversion rather than non-portable INTERNAL encoding 780b6612a9 wayland: Wayland_Vulkan_GetInstanceExtensions didn't set the count variable. 46b940d571 Updated documentation to note that the event callback is called on the same thread as the main iteration callback 4481754359 Make sure we only dispatch events on the main thread when using application callbacks 274da8561c Updated the migration guide to note that you can check the return value of SDL_AddEventWatch() ad9dcdbbce Clarify that you should use the other field when reading the event a19029e3c1 docs: Updated README-main-functions.md based on feedback. 019468dc59 main: Check for SDL_AddEventWatch failure, now that it can report it. 7e445da569 Added SDL_CleanupEvent() c4bf05fd9d Added subsystem refcount tests to testautomation 7f65ed6461 Handle subsystem dependencies recursively a6b85c81cc Fixed build 3ab6670cb1 Sync SDL3 wiki -> header f439ccfc1a Updated return values for SDL event functions e0379c3b37 Grab events in large chunks in SDL_IterateMainCallbacks() ad5264e54f Don't run SDL_IterateMainCallbacks() if the init call returns an exit code dad1a84be4 Fixed building Vivante video driver fe175d025f Fixed building Vivante video driver 0b460f34ba The HP HyperX controllers have a share button f3261fedcc Code cleanup now that SDL_bool is equivalent to a C boolean expression a76d8e39aa Changed SDL_bool from an enum to unsigned int cf7e5bd0e8 Sync SDL3 wiki -> header 853c28e624 docs: Added first draft of README-main-functions.md 70d75b4a23 Sync wiki -> headers ea02630143 More audio migration clarification 14980b25a8 Clarify documentation for audio callback migration 6cf84e2c5b cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H 5e869d1b35 fix Cocoa_Vulkan_GetInstanceExtensions prototype for Mac 07a776f255 include: Fixed documentation for SDL_Vulkan_GetInstanceExtensions. 5b3a2c6df6 docs: Updated SDL_Vulkan_GetInstanceExtensions info in README-migration.md. 9224a0a2d8 Fix emscripten, android, uikit and windows d0d8b28df1 Change SDL_Vulkan_GetInstanceExtensions 338974bb29 SDL_test_memory.c: fix build against older windows SDKs. 618d15bce6 Fixed typo ad0af48883 Check to make sure the Windows joystick device has buttons and axes ac6b32bb02 gendynapi.py: Discard SDLMAIN_DECLSPEC functions. 9c664b0062 main: Added _optional_ callback entry points. 9323417e9c Fixed gendyapi.py parsing of SDL_RELEASE_GENERIC 759cdf6159 audio: Fixed GetFirstAudioDeviceAdded(). 0e614d9179 audio: Massive reworking on thread locking. 40fb76196c audio: Don't let simplified audio streams bind to new devices. 24e3328cca audio: Don't reset device ID counter on subsystem init/quit. 5d95cbde37 cmake: reset check state before testing -fobjc-arc f18120c83c cmake: check -fobjc-arc compiler flag on Apple platforms 4aacc4b92e cmake: file(RELATIVE_PATH) needs 2 absolute paths dcc8805c21 testaudio: Fixed compiler warning on Visual Studio. 9cb259e865 audio: Never SDL_PushEvent from anywhere but SDL_UpdateAudio(). 875e45e70b wayland: Sanity check pointers and protocols before confining 0e87b71d08 wayland: Check the relative pointer handle before destroying 6127ac0871 Use SDL_DISABLE_ALLOCA instead of HAVE_ALLOCA in SDL_stdinc.h 552bee47cb Clear any previous errors if we successfully show a message box 343da852a6 Don't try to use the Wayland messagebox if we're not in Wayland f63e9a8a3f wasapi: Handle disconnected devices that get reconnected. 5fa7b291d4 wasapi: Fixed memory leak if new audio devices fail to add. 468c386686 wasapi: Handle disconnect notifications from the management thread, too. ce3be02b48 wasapi: If device is marked as a zombie, don't try to resuscitate it. 85923049a6 wasapi: Patched to compile. 9bec57309c wasapi: Proxy default device change handling to management thread. c45b5121ce audio: Fixed potential race condition. 8b6da3c701 Fixed making the EGL context current when resuming on Android 2e9eb1073d Sync SDL3 wiki -> header e6116d399a mutex: Removed SDL_MUTEX_MAXWAIT. 82f48be3ef Sync SDL3 wiki -> header 899eb0d042 thread: Locking mutexes and rwlocks are now void functions. 082ef41566 alsa: Fix crash from invalid handle pointer a9aa15c792 CI: change FreeBSD CI runner to cross-platform-actions. 23ceae94c9 Fixed Xbox 360 Controller support using libusb on Linux ace0c2c297 mutex: Fixed bug where generic SDL_TryLockMutex would incorrectly block. f52b330ed8 Added support for the HP HyperX Clutch Gladiate controller b61706373c n3ds: Check that audio thread name starts with "SDLAudioP" 6827b3331d n3ds systhread - use 80kb thread stack size as default, remove hard cap e4cd1d4059 n3ds systhread - prefer to put audio thread on system core 1023d8ec84 SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized 07171be596 SDL_n3dsaudio.h: use triple buffering 6efe957159 SDL_n3dsaudio.c: separate mixer locks from audio device locks 39a961ba41 Added support for "%[]" sscanf syntax 124a0050b6 Fixed warning: no previous prototype for function 'SDL_UpdateAudio' b16165a33f rwlock: SDL_UnlockRWLock was incorrectly tagged with SDL_RELEASE_SHARED. 865dd04068 pulseaudio: Don't use a hash for device change detection. b8cc51875a Fixed build 0413e21e54 Fixed audio device removed events for ALSA 5ba03d377a Revert "Fixed audio device removed events for ALSA" a774694be0 pulseaudio: Simplified default device change detection code. e57fef8f0b Fixed audio device removed events for ALSA 4280d4b359 Fixed warning C4210: nonstandard extension used: function given file scope 182cfc3265 pulseaudio: Rework how we manage default devices and hotplug. b2ae1e835f pulseaudio: Change debug printf calls to use SDL_Log instead. 38afd48daf Added a single source of SDL object IDs e07f6c0a17 SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!) c98a14fdeb Renamed display added/removed events for consistency with the rest of the API c2a3112b6f Added "--substring" to the help for rename_symbols.py a844d90942 Add missing error reporting in Android_JNI_FileOpen() 4ac38d13dd alsa: Don't touch free'd memory in hotplug thread. 43d41c9dcb audio: Another attempt to make device add/remove work vs event watchers. 9abc692156 audio: Another attempt to deal with device destruction from device thread. 33c9eeec7c Revert "audio: Device threads don't increment physical device refcounts." e5a15f94e2 Revert "Check to make sure the Windows joystick device has buttons and axes" 70fd8e2ba2 Lock joysticks when adding gamepad mappings 76f81797b7 audio: Device threads don't increment physical device refcounts. 594fda4120 Sync SDL3 wiki -> header 0d7c5a2c56 Updated Android API documentation 0df888c584 Moved Android low latency audio behind a hint "SDL_ANDROID_LOW_LATENCY_AUDIO" 142366c837 Sync SDL3 wiki -> header 3a4c9d6990 Fixed build error when API logging is enabled 1f8f82b379 Removed redundant thread-safety information a6edc75fe7 Sync SDL3 wiki -> header 3c8edeb79b Clarified SDL property thread-safety information 4fa821cb3e Sync SDL3 wiki -> header 1c70760c0b Added thread-safety information for the new SDL properties API 15533dce05 Cleaned up warnings from check_stdlib_usage.py bf269571fc jack: Removed FIXME comment that has since been fixed. 797b70877d audio: Remove stub header SDL_audio_c.h. 9d7c57234a audio: Cleaned out most remaining `/* */` comments for `//` style. 0ff67dc21b video: Fix compiler warning about SDL_ReadSurfacePixel not being declared. 81c77396af opensles: Patched to compile. 442e84916a opensles: Fixed capitalization to match other SDL backends. 34914bfb49 alsa: Clean up device handles, now that hotplug thread cleanup is in place. 48d80efb51 Fixed warning C4701: potentially uninitialized local variable 'props' used f7dc63bcc3 audio: another windows wasapi build fix. dd98330076 audio: fix windows wasapi build. 7a52f7b3fd audio: Split Deinitialize into two stages. e55e556f32 alsa: Fixed minor memory leak. b45a0d9016 Updated the documentation for SDL_LoadWAV_RW() 435e7ce663 Check for device disconnection in HIDAPI_JoystickOpen() b733adb503 audio: Fix device refcounting vs ProvidesOwnCallbackThread backends. c6f08c2553 testaudio: Removed debugging code. d5dac0ad27 testaudio: Deal with a texture being unexpectedly NULL when scaling. b19e68c8ec testaudio: Properly display playback progress, regardless of data source. 8c39269279 audio: Fix audio stream format when binding to a capture device. f26b838a3e jack: Check for sample rate and buffer size changes from the server. 063cb0df6b audio: Fixed comment typo. "deref" should be "unref" 354611a0c6 testaudio: Fixed some bugs Valgrind pointed out. a17f3ba916 audio: Reworked audio device disconnect management. 6ddd96a4d0 Fix some wrong gamepad/controller event enums 8df68b4120 hashtable: Moved over to single-line comments. 1c6d996108 testaudio: if the SDL_Renderer is already gone, don't destroy SDL_Textures. b22ffb9797 audio: Fix some logic errors in the new device hashtable code. e526dc64bd Don't set unused variable 6664437748 hashtable: Don't rearrange bucket elements during SDL_FindInHashTable. 8ac5c84ad1 audio: device thread shouldn't touch `thread_alive` after object is free'd. b17151eb16 testaudio: Don't crash if renderer is NULL (happens during shutdown). 7f408e57ee audio: Keep all available devices in a hashtable instead of linked lists. 0aba2c97db hashtable: SDL_IterateHashTable might as well provide both key and value. 95a9271dbf audio: Never lock a device while holding the device_list_lock. 9aeabb0b05 Fix macOS build error by #8269 382751c4b5 testffmpeg: print usage of options to change audio/video codec f91bde64d5 testffmpeg: Only enable blending if we're using a texture format that supports it 516d6f9efc testffmpeg: added support for YUVA formats using swscale ac71831350 Sync wiki -> headers d18f910248 testffmpeg: added the ability to specify audio and video codecs 72034b9a07 wayland: Fix primary selection handling when the protocol isn't supported e152129787 Fixes #8190. From #7249, reverted the hunks other than #7239. b79db0a6ea Fixed potential wraparound issue with property IDs c9ccf0670c Add unsupported functions to dynapi 25ce87979d Always provide an implementation for all SDL3 symbols 3a36433a3c cmake: test -Wl,--version-script with minimal version script 0efa196989 dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support bf64fecf19 testffmpeg: allow resizing of the video window efa9a45048 Clarified that testffmpeg will resize the window to the video size 4368f70ff9 Added properties to various SDL objects 973c8b3273 Added SDL properties API 2bca4671a6 audio: Allow audio streams to be created when the subsystem isn't initialized. 1ae33f6751 cmake: optionally install pdb's 0d5cad91b1 We need audio converters initialized in SDL_InitAudio() 1c3a0ade74 audio: Whoops, this stream format change is only for capture devices. 10fab3a39e pulseaudio: Stop the threaded mainloop before destroying the context. 0b71898cb1 Make it clear that the string comparison isn't a boolean check 6c8ad975c7 Like mutexes, operations on NULL rwlocks are no-ops c552cc6847 We don't require the audio system to be initialized for audio format conversion 9a5f7b17c6 Use SDL wrapped getenv function 044046bc50 audio: Fixed assertions when capture devices have wrong audio formats. bb2f767f5d testaudio: Make program usable without a 3-button mouse. 321fc18417 README-migration.md: Added note about SDL_HasRDTSC removal. 82f54af617 x11: Properly check for XInput2 support before using it. b654427537 Added support for the PowerA Nintendo Switch Nano Wired Controller dc2a5f6ab2 Fixed error C2054: expected '(' to follow 'inline' a7ae1de9a6 Fixed warning C4028: formal parameter different from declaration 3a47fb7208 The sensor and joystick instance ID generator isn't guarded by a lock. aee4862958 ci: stop FreeBSD job after 30 minutes 99fa0d6cae Disable low latency audio by default when using AAudio on Android ebfbd7327b testffmpeg: use SDL_test to parse arguments and track memory ee53e4d319 cmake: check ffmpeg capability instead of version 2d62c65a75 Fixed build warning bf72704bfd audio: Disable NEON sample conversion until test failures are fixed 0fe95cfba3 Sync wiki -> header adcace6f95 Added a "--software" option to testffmpeg 86ada8a9f0 fix testffmpeg.c build. 303f4e965c testffmpeg works with ffmpeg 5.1.3 and newer 2bd478ae65 Added SDL_GetTextureDXGIResource() to get the DXGI resource associated with a render texture. a842446f62 Added support for 0-copy decode and display using D3D11 d830cd140b Added support for 0-copy decode and display using Apple VideoToolbox 1bf913b29a Added support for 0-copy decode and display using VAAPI and EGL ce8161e0cf Make sure we're building with ffmpeg 6.0 or newer ed6381b68d Allow setting any number of sprites over the video ebf5e08fa1 cmake: use *_STATIC_* variables when linking to a static ffmpeg 88f2fb9dcf Added an example of video decoding with ffmpeg d88bf687a8 surface: Document the in-memory layout of the pixels 3698630bbc pixels: Document the naming convention 04edb38cdf shape: Use SDL[Test]_ReadSurfacePixel f5745c3a67 surface: Add a private SDL_ReadSurfacePixel 0d68f45879 test: Extract SDLTest_ReadSurfacePixel 55a1458ed0 audio: Changes to one logical device must update all sibling logical devices. 8e03ea4383 hashtable: Use Create/Destroy naming, in the SDL3 style. 568902b64e hashtable: Added src/SDL_hashtable.[ch]. 8745a9949b add-source-to-projects.pl: Fix adding files in the base src dir. 836927edf8 wayland: Try to skip the Wayland driver if not connecting to or in a Wayland session 2a9480c815 wayland: Add null check for zenity version string f30392da5b Fix assertion in LINUX_JoystickSetSensorsEnabled() 4e59bf6cb9 SDLTest_CompareSurfaces: Output RGBA values of first differing pixel b2ddfbbec3 SDLTest_CompareSurfaces: If surfaces differ, log their formats b028fd9604 SDLTest_CompareSurfaces: Log better messages if NULL or different sizes 183606d3d4 testdrawchessboard: clean up renderer and window 4f0642bf47 triangle: don't read destination pixel when you're going to discard it anyways 4cd0c13823 blit_slow: don't read destination pixel when you're going to discard it anyways 49abb9c1fa aaudio: Fixed a comment. 0eb8651d5e Do not report gyro/accelerometer if we can't read axes info ff57867516 audio: Fixed copy/paste error that was checking wrong variable. d2d4914ac3 audio: WaitDevice/WaitCaptureDevice now returns a result. a0820ed833 directsound: Cleaned up WaitDevice. 6c33a05bdb audio: Removed unused AllowsArbitraryDeviceNames variable. f1fc198278 audio: Destroy the logical audio device before sending DEVICE_REMOVED event. 64ec208479 Fix log message spelling 9111c5e178 tests: Disable mouse warp test under Wayland de5068f4e4 audio: Commented out a currently-incorrect assert. 3abb464f10 ci: disable Intel compilers 251f8fa272 Revert "Do a better job of finding default ALSA devices" 8857b0f13a Use the device audio format for the lowest latency 806e11ac00 Update sample processing bookkeeping when recovering the AAudio audio device 482c238953 aaudio: Deal with device recovery. a8813b58a6 aaudio: Change an int to an SDL_bool. 8923305f34 We don't need to wait a full 10 ms, just delay a bit 6a152676bb Wait a bit when snd_pcm_avail() returns 0 b4372de186 alsa: Cleaned up remaining debug logging. a063c943dc pulseaudio: Use pa_stream_begin_write to avoid an extra buffer copy. 0471a93706 alsa: Simplified PlayDevice and CaptureFromDevice. 776d9d0ee3 alsa: Convert `/* */` comments to `//` comments. 64fee85c69 alsa: More efficient audio thread iteration. 47cba08259 VisualC/pkg-support/cmake: remove subdir from public header include path 61e9a9dd56 pulseaudio: Just feed the device whenever it asks for any amount of data. 4f76f9b0a7 pulseaudio: Use correct buffer size of stream, wait less between fills. d95d2d7051 SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms d65861f049 Do a better job of finding default ALSA devices ba65ef5ce7 Recover from -EPIPE in snd_pcm_avail() 5be5000fa1 cmake: make HEADERS_DIR a required argument of SDL_generate_manpages 5c1a91a4e1 ci: make sure perl is installed + build docs with MSVC toolchain 6248472c0c test: Accept small numerical differences in more mathematical tests a2c5dc6507 pulseaudio: Added typedef needed for compat with ancient Pulse installs. f24551f6d1 pulseaudio: More workarounds for extremely old Pulse installs. 441a5b707b audio: Adjusted const/static fields on some variables. 280c2c1d7d pulseaudio: Revert "pulseaudio: Require PulseAudio 5.0 or later for SDL3." 4db2b968af audio: simple-copy path should check if device is paused. 505dc4c39c wasapi: Deal with device failures when we aren't holding the device lock. ea5f59c234 Removed unused code a6854098f7 Fixed stuttering on Android when using the AAudio driver a5175e5ed0 audio: Fixed bug when setting up mixing formats. 9667aa18e6 wayland: Check that the data device supports the release method before calling it 4454dc400b wayland: Null all Wayland manager objects after freeing e1789b320e video: Streamline a little deinit code. 2a1058713c Bump libdecor feature check to look for 0.2.0 f5886f11d0 cmake: let every test depends on pretest f45761908a Move check for SDL_Delay upper bounds to testtimer a84389f6bb libm: use union for infinity 474c8d0073 testautomation: don't do float equality tests a6bc6b882c ci: always upload the artifacts 85e3099ba4 testautomation: only require accelated renderer with non-dummy video driver 26fd231151 ci: run tests on msvc workflow 0e955a9127 cmake: run testautomation with CTest 1375d2049d SDL_iconv_string() defaults to UTF-8 70a1bc6973 Check for NULL before dereferencing newly allocated memory 752f14e5a6 wayland: Convert some memcpy calls to copyp 9284a03053 wayland: Remove some unnecessary helper functions git-subtree-dir: external/sdl/SDL git-subtree-split: 0d7df16812c75c4a587d7d2673e3d1a5f2c2879b
2024-01-17 16:26:06 +01:00
if (!_this->Metal_CreateView) {
SDL_Unsupported();
return NULL;
}
if (!(window->flags & SDL_WINDOW_METAL)) {
/* No problem, we can convert to Metal */
if (window->flags & SDL_WINDOW_OPENGL) {
window->flags &= ~SDL_WINDOW_OPENGL;
SDL_GL_UnloadLibrary();
}
if (window->flags & SDL_WINDOW_VULKAN) {
window->flags &= ~SDL_WINDOW_VULKAN;
SDL_Vulkan_UnloadLibrary();
}
window->flags |= SDL_WINDOW_METAL;
}
return _this->Metal_CreateView(_this, window);
}
void SDL_Metal_DestroyView(SDL_MetalView view)
{
if (_this && view && _this->Metal_DestroyView) {
_this->Metal_DestroyView(_this, view);
}
}
void *SDL_Metal_GetLayer(SDL_MetalView view)
{
if (_this && _this->Metal_GetLayer) {
if (view) {
return _this->Metal_GetLayer(_this, view);
} else {
SDL_InvalidParamError("view");
return NULL;
}
} else {
SDL_SetError("Metal is not supported.");
return NULL;
}
}